Skip to content

Commit 6750aa2

Browse files
committed
Link Swift standard library statically in Docker build
1 parent 4019a6e commit 6750aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ COPY Source Source/
1111
COPY Tests Tests/
1212
COPY Package.* ./
1313
ARG TARGETPLATFORM
14-
RUN swift build -c release --product swiftlint
14+
RUN swift build -c release --product swiftlint -Xswiftc -static-stdlib -Xlinker -fuse-ld=lld
1515
RUN mv $(swift build -c release --show-bin-path)/swiftlint .
1616

1717
# Runtime image

0 commit comments

Comments
 (0)