Skip to content

Commit

Permalink
Strip binaries to reduce size
Browse files Browse the repository at this point in the history
Closes #24
  • Loading branch information
Erisa committed Feb 9, 2024
1 parent 527cb0d commit ad14ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ARG TARGETARCH
ARG TARGETVARIANT
# Fixes execution on linux/arm/v6 for devices that don't support armv7 binaries
RUN if [ "${TARGETVARIANT}" = "v6" ] && [ "${TARGETARCH}" = "arm" ]; then export GOARM=6; fi; \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make LINK_FLAGS="-w -s" cloudflared

# Runtime container
FROM scratch
Expand Down

0 comments on commit ad14ac9

Please sign in to comment.