Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 days 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-19T19:41:32.000Z (over 3 years ago)
- Last Synced: 2024-10-14T12:42:49.924Z (2 months ago)
- Topics: docker, go, golang, multi-stage, multi-stage-build
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 2
- 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
[![Build Status](https://github.com/kevinpollet/go-docker-multi-stage-build/workflows/build/badge.svg)](https://github.com/kevinpollet/go-docker-multi-stage-build/actions)
[![License](https://img.shields.io/github/license/kevinpollet/go-docker-multi-stage-build)](./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)