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" ]