Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 547 Bytes

File metadata and controls

20 lines (12 loc) · 547 Bytes

Docker GoReleaser Sample

This is a sample Application, that shows how to create a small Go Application wrapped inside a Docker container by GoReleaser (https://goreleaser.com/).

  • Features:
    • Directories inside container
    • Metrics in an exposed webserver with expvar package (https://pkg.go.dev/expvar)
    • Dockerfile with Delve and vscode launch settings.
  1. Get GoReleaser:

    https://github.com/goreleaser/goreleaser

  2. Let Goreleaser build your docker Go App:

    ./release.sh

  3. Run container:

    ./run_container.sh