docker: add SWIFT_VERSION arg (#276)
- Commit
f0ef4151b13952f1a39a3fd3418753cee2de8f6e- Author
- Kabir Oberai <[email protected]>
- When
- 2026-09-22 00:53 UTC (2 months ago)
- Parents
f1a816e
## What does this PR do? Adds a `SWIFT_VERSION` arg to the Dockerfile ## How was it tested? Ran on macOS ## AI tool usage How much of this PR was AI-assisted? (check one) - [x] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated the build and runtime environments to use Swift 6.3.3 consistently. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Diff
Dockerfile
diff --git a/Dockerfile b/Dockerfileindex 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) \