diff --git a/Dockerfile b/Dockerfile index 89d5fd7..02bb006 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ ENV CGO_ENABLED=0 COPY go.mod go.sum ./ RUN go mod download && \ go mod verify && \ - echo 'package main\nimport (_ "tailscale.com/tsnet")\nfunc main(){}' > main.go && \ - go build -v ./ && \ + echo 'package main\nimport (\n_ "tailscale.com/tsnet"\n_ "tailscale.com/client/tailscale"\n)\nfunc main(){}' > main.go && \ + go build -ldflags="-s -w" -v ./ && \ rm main.go COPY . .