https://github.com/kevinpollet/go-docker-multi-stage-build
🐳 This repository shows how to build a Docker image for a Go app with the Docker multi-stage feature
https://github.com/kevinpollet/go-docker-multi-stage-build
docker go golang multi-stage multi-stage-build
Last synced: about 1 year ago
JSON representation
🐳 This repository shows how to build a Docker image for a Go app with the Docker multi-stage feature
- Host: GitHub
- URL: https://github.com/kevinpollet/go-docker-multi-stage-build
- Owner: kevinpollet
- License: mit
- Created: 2019-10-12T10:51:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-19T19:41:32.000Z (over 4 years ago)
- Last Synced: 2025-03-24T11:45:53.912Z (about 1 year ago)
- Topics: docker, go, golang, multi-stage, multi-stage-build
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# go-docker-multi-stage-build
[](https://github.com/kevinpollet/go-docker-multi-stage-build/actions)
[](./LICENSE.md)
This repository shows how to build a Docker image for a [Go](https://go.dev/) app with the [Docker multi-stage feature](https://docs.docker.com/develop/develop-images/multistage-build/) available since version `17.05`.
## Build image
```shell
$ docker build . -t greet
```
## Run container
```shell
$ docker run --rm greet
Hello, World!
```
```shell
$ docker run --rm greet John
Hello, John!
```
## Contributing
Contributions are welcome!
Want to file a bug, request a feature or contribute some code?
- Check out the [Code of Conduct](./CODE_OF_CONDUCT.md)
- Check if there is an existing issue corresponding to your bug or feature
- Open an issue to discuss your bug or new feature
## License
[MIT](./LICENSE.md)