We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aafcb2d commit 27e77a5Copy full SHA for 27e77a5
1 file changed
Dockerfile
@@ -7,7 +7,7 @@ WORKDIR ${pkg}
7
RUN glide install
8
RUN find .
9
WORKDIR ${pkg}/cmd/echo-server
10
-RUN CGO_ENABLED=0 GOOS=linux go build --ldflags="-s -w" -o /opt/echo-server .
+RUN CGO_ENABLED=0 GOOS=linux go build --ldflags="-linkmode external -extldflags -static -s -w" -a -o /opt/echo-server .
11
12
13
FROM scratch
0 commit comments