Thu Sep 05
How to build a slim Docker container for your Go application using multi-stage images. I'm using Go 1.13 and the community module proxy to build the binary and Alpine as a base image. It adds a user and group instead of running as root. Dockerfile Be sure to replace "cmd/server/server.go" with your main file. FROM...