From 617d264388d3167713a04af6ff7bb9881c098dd9 Mon Sep 17 00:00:00 2001 From: Sergey Mudrik Date: Sat, 9 Oct 2021 23:52:00 +0300 Subject: [PATCH] Added -trimpath to the build in Docker --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 798a5d7..146c607 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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