Skip to content

Commit ad14ac9

Browse files
committed
Strip binaries to reduce size
Closes #24
1 parent 527cb0d commit ad14ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARG TARGETARCH
2121
ARG TARGETVARIANT
2222
# Fixes execution on linux/arm/v6 for devices that don't support armv7 binaries
2323
RUN if [ "${TARGETVARIANT}" = "v6" ] && [ "${TARGETARCH}" = "arm" ]; then export GOARM=6; fi; \
24-
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared
24+
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make LINK_FLAGS="-w -s" cloudflared
2525

2626
# Runtime container
2727
FROM scratch

0 commit comments

Comments
 (0)