Skip to content

Commit

Permalink
Added -trimpath to the build in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Oct 9, 2021
1 parent 9877c69 commit 617d264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -8,7 +8,7 @@ RUN apk add --no-cache git
ADD . $GOPATH/src/github.com/msoap/shell2http
WORKDIR $GOPATH/src/github.com/msoap/shell2http
ENV CGO_ENABLED=0
RUN go build -v -ldflags="-w -s" -o /go/bin/shell2http .
RUN go build -v -trimpath -ldflags="-w -s" -o /go/bin/shell2http .

# final image
FROM alpine
Expand Down

0 comments on commit 617d264

Please sign in to comment.