Skip to content

Commit

Permalink
Add -trimpath
Browse files Browse the repository at this point in the history
  • Loading branch information
misery committed May 6, 2022
1 parent 98d5de3 commit afc960d
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 @@ -2,7 +2,7 @@ FROM golang:1.18-alpine AS builder

WORKDIR /src
COPY main.go go.mod go.sum /src/
RUN CGO_ENABLED=0 go build -ldflags="-s -w"
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w"


FROM scratch
Expand Down

0 comments on commit afc960d

Please sign in to comment.