Skip to content

Commit ea1856d

Browse files
committed
Use Swift v6 in Dockerfile
1 parent 62c2019 commit ea1856d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ================================
22
# Build image
33
# ================================
4-
FROM swift:5.10-noble AS build
4+
FROM swift:6.0-noble AS build
55

66
# Install OS updates
77
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
@@ -23,11 +23,12 @@ RUN swift package resolve \
2323
# Copy entire repo into container
2424
COPY . .
2525

26-
# Build everything, with optimizations, with static linking, and using jemalloc
26+
# Build the application, with optimizations, with static linking, and using jemalloc
2727
# N.B.: The static version of jemalloc is incompatible with the static Swift runtime.
2828
RUN swift build -c release \
29-
--static-swift-stdlib \
30-
-Xlinker -ljemalloc
29+
--product App \
30+
--static-swift-stdlib \
31+
-Xlinker -ljemalloc
3132

3233
# Switch to the staging area
3334
WORKDIR /staging

0 commit comments

Comments
 (0)