Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rabelais88/go-docker
https://github.com/rabelais88/go-docker
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rabelais88/go-docker
- Owner: rabelais88
- Created: 2019-12-25T16:19:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T11:28:14.000Z (almost 5 years ago)
- Last Synced: 2024-10-10T05:37:06.155Z (about 1 month ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang package example /w docker
- easier to solve GOPATH issues
- can crosscompile for multiple OS environments on a single computer```sh
# throwaway build
docker run --rm -v "$PWD":/go/src/app -w /go/src/app golang:latest go build -v# throwaway run
docker run --rm -v "$PWD":/go/src/app -w /go/src/app golang:latest go run main.go# /w package
docker build -t ${PREFERRED_NAME}:${PREFERRED_TAG} .
docker run ${PREFERRED_NAME}:${PREFERRED_TAG}
```