All Projects → elithrar → Vgo Docker Example

elithrar / Vgo Docker Example

Licence: bsd-3-clause
An example of how to use vgo (https://research.swtch.com/vgo-tour) + Docker together.

Programming Languages

go
31211 projects - #10 most used programming language

vgo-docker-example

A straightforward example of how to:

  • Build Go applications using 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 image.

The end result? Reproducible builds and small images.

Installing

Get the package:

go get github.com/elithrar/vgo-docker-example

Build it:

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.

License

BSD licensed. See the LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].