diff --git a/Dockerfile b/Dockerfile index 4dad3833..516629e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.20 as builder WORKDIR /go/src/sshportal COPY . ./ -RUN go build -ldflags="-X main.GitSha=$(git rev-parse --short HEAD) -X main.GitTag=$(git describe --tags --always) -extldflags '-static' -w -s" -tags sqlite_omit_load_extension -v -o /go/bin/sshportal +RUN go build -ldflags="-X main.GitSha=$(git rev-parse --short HEAD) -X main.GitTag=$(git describe --tags --always) -extldflags '-static' -w -s" -tags osusergo,netgo,sqlite_omit_load_extension -v -o /go/bin/sshportal # minimal runtime # https://github.com/GoogleContainerTools/distroless/blob/main/base/README.md