Skip to content

Commit 27e77a5

Browse files
author
Duffie Cooley
committed
moar static
1 parent aafcb2d commit 27e77a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR ${pkg}
77
RUN glide install
88
RUN find .
99
WORKDIR ${pkg}/cmd/echo-server
10-
RUN CGO_ENABLED=0 GOOS=linux go build --ldflags="-s -w" -o /opt/echo-server .
10+
RUN CGO_ENABLED=0 GOOS=linux go build --ldflags="-linkmode external -extldflags -static -s -w" -a -o /opt/echo-server .
1111

1212

1313
FROM scratch

0 commit comments

Comments
 (0)