Skip to content

Commit bbaad36

Browse files
committed
Update Dockerfile step to swift-build, update to Swift 6.2.3
1 parent adb4496 commit bbaad36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM --platform=$BUILDPLATFORM docker.io/swift:6.2.0 AS build
3+
FROM --platform=$BUILDPLATFORM docker.io/swift:6.2.3 AS swift-build
44
WORKDIR /workspace
55
RUN swift sdk install \
6-
https://download.swift.org/swift-6.2-release/static-sdk/swift-6.2-RELEASE/swift-6.2-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz \
7-
--checksum d2225840e592389ca517bbf71652f7003dbf45ac35d1e57d98b9250368769378
6+
https://download.swift.org/swift-6.2.3-release/static-sdk/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz \
7+
--checksum f30ec724d824ef43b5546e02ca06a8682dafab4b26a99fbb0e858c347e507a2c
88

99
COPY ./Package.swift ./Package.resolved /workspace/
1010
RUN --mount=type=cache,target=/workspace/.spm-cache,id=spm-cache \
@@ -23,5 +23,5 @@ RUN --mount=type=cache,target=/workspace/.build,id=build-$TARGETPLATFORM \
2323
cp .build/release/ExampleApp dist
2424

2525
FROM scratch AS release
26-
COPY --from=build /workspace/dist/ExampleApp /usr/local/bin/swift-example
26+
COPY --from=swift-build /workspace/dist/ExampleApp /usr/local/bin/swift-example
2727
ENTRYPOINT ["/usr/local/bin/swift-example"]

0 commit comments

Comments
 (0)