- Copy Certificate to the working dir
cp /etc/ssl/certs/ca-certificates.crt .
- Build the application with as a statically linked binary:
CGO_ENABLED=0 GOOS=linux go build -a --ldflags="-s" --installsuffix cgo -o main
- Build the Docker container
docker build -t YOURNAME/APPNAME -f ./Dockerfile .
- Run it
docker run -d -p 3000:3000 YOURNAME/APPNAME