https://github.com/patricksanders/go-docker-hello
Boilerplate for golang in Docker
https://github.com/patricksanders/go-docker-hello
boilerplate docker example golang helloworld
Last synced: 7 months ago
JSON representation
Boilerplate for golang in Docker
- Host: GitHub
- URL: https://github.com/patricksanders/go-docker-hello
- Owner: patricksanders
- License: mit
- Created: 2017-07-14T16:36:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T17:35:58.000Z (over 7 years ago)
- Last Synced: 2025-03-24T14:46:55.170Z (10 months ago)
- Topics: boilerplate, docker, example, golang, helloworld
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-docker-hello
[](https://travis-ci.org/patricksanders/go-docker-hello)
This is a simple example of building a docker image to run a Go program.
Because it uses multi-stage build, Docker CE 17.06 or newer is required.
Go version can be changed by passing the `GOLANG_VERSION` arg from the Makefile or by modifying the default in the Dockerfile.
## Usage
Do what you want. Modify `hello.go`, or replace it with your own Go program.
### building
```
make build
```
### running
```
make run
```