Skip to content

Instantly share code, notes, and snippets.

@phedoreanu
Created September 19, 2017 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phedoreanu/a41e13498d91717963e2690885580e84 to your computer and use it in GitHub Desktop.
Save phedoreanu/a41e13498d91717963e2690885580e84 to your computer and use it in GitHub Desktop.
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo
# Dockerfile
FROM scratch
#ADD ca-certificates.crt /etc/ssl/certs
ADD app / # add binary
ENV LISTEN_PORT 7905
ENTRYPOINT [ "/app" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment