Skip to content

Commit

Permalink
Strip debug information to reduce size
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberbeni authored Oct 25, 2024
1 parent c2085ff commit cdf06cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARG TARGETPLATFORM
RUN --mount=type=cache,target=/workspace/.build,id=build-$TARGETPLATFORM \
./Scripts/build-linux-release.sh && \
cp /workspace/.build/release/swiftformat /workspace
RUN strip /workspace/swiftformat

FROM scratch AS runner
COPY --from=builder /workspace/swiftformat /usr/bin/swiftformat
Expand Down

0 comments on commit cdf06cc

Please sign in to comment.