vgo-docker-example

command module
v0.0.0-...-80b78c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL