From 32bf930ea1786e5145f5c370de1e2fb38eb24b0d Mon Sep 17 00:00:00 2001 From: Asim Date: Sat, 8 Oct 2016 10:26:11 +0100 Subject: [PATCH] update dockerfile --- examples/server/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/server/Dockerfile b/examples/server/Dockerfile index 9bb5a8c8..c24b628a 100644 --- a/examples/server/Dockerfile +++ b/examples/server/Dockerfile @@ -1,3 +1,5 @@ -FROM scratch +# Build binary with the following command +# CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o server ./main.go +FROM alpine:3.2 ADD server / ENTRYPOINT [ "/server" ]