Created
November 7, 2015 06:43
-
-
Save calvinchengx/66c3ef5c13250b1192cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM scratch | |
ADD certs /etc/ssl/certs | |
ADD main / | |
CMD ["/main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main . | |
eval "$(docker-machine env dev)" && docker-machine scp -r dev:/etc/ssl/certs/ certs | |
eval "$(docker-machine env dev)" && docker build -t golangdocker -f Dockerfile . | |
rm -rf certs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment