Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elithrar/vgo-docker-example
An example of how to use vgo (https://research.swtch.com/vgo-tour) + Docker together.
https://github.com/elithrar/vgo-docker-example
Last synced: 3 months ago
JSON representation
An example of how to use vgo (https://research.swtch.com/vgo-tour) + Docker together.
- Host: GitHub
- URL: https://github.com/elithrar/vgo-docker-example
- Owner: elithrar
- License: bsd-3-clause
- Archived: true
- Created: 2018-02-22T22:04:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-19T18:49:27.000Z (over 6 years ago)
- Last Synced: 2024-07-16T15:39:23.550Z (4 months ago)
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 45
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vgo-docker-example
A straightforward example of how to:
* Build Go applications using [vgo](https://github.com/golang/vgo)
* Write a Dockerfile that uses vgo as part of it's build process.
* Copy the build artifact to a minimal Docker image the leverages the [google/distroless](https://github.com/GoogleCloudPlatform/distroless) image.The end result? Reproducible builds *and* small images.
## Installing
Get the package:
```sh
go get github.com/elithrar/vgo-docker-example
```Build it:
```sh
docker build -t vgo-docker-example:latest .
```Run it:
```
docker run vgo-docker-example:latest
```The `vgo-docker-example` runs a simple web server using [gorilla/mux](https://github.com/gorilla/mux/).
## License
BSD licensed. See the LICENSE file for details.