Skip to content

Commit

Permalink
🔧 (dockerfile): Add -trimpath flag
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 3, 2023
1 parent 4a9b691 commit b165011
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 @@ -16,7 +16,7 @@ RUN set -x \
'linux/arm64') export GOARCH=arm64 ;; \
*) echo "Unsupported target: $TARGETPLATFORM" && exit 1 ;; \
esac \
&& go build -ldflags='-w -s'
&& go build -ldflags='-w -s' -trimpath

FROM alpine:3.18
WORKDIR /app
Expand Down

0 comments on commit b165011

Please sign in to comment.