Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

docker: add SWIFT_VERSION arg (#276)

Kabir Oberaif0ef4151b139
diff --git a/Dockerfile b/Dockerfile
index 0433f7a..c8ecc16 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,9 @@
# Note: We use 22.04 since AppImage recommends building on the
# oldest configuration that you support
-FROM swift:6.3-jammy AS build-base
+ARG SWIFT_VERSION=6.3.3
+
+FROM swift:${SWIFT_VERSION}-jammy AS build-base
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
@@ -102,7 +104,7 @@ RUN swift package resolve
ADD . /xtool
RUN ./Linux/build.sh
-FROM swift:6.3 AS xtool
+FROM swift:${SWIFT_VERSION} AS xtool
COPY --from=build-xtool /xtool/Linux/packages/xtool-*.AppImage /xtool/xtool.AppImage
RUN (cd /xtool && ./xtool.AppImage --appimage-extract) \