An complete guid to containerising Go services
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
Readme.md
go.mod
go.sum
main.go

Readme.md

This is the code for the tutorial on how to Dockerise a Go service.

URL: https://xitonix.io/2018/12/11/containerised-go-services

In this tutorial you will learn:

  • How to run basic Docker commands to build an image and run a container.

  • How to use the golang base image to build a Go service.

  • How to configure git to fetch packages from a private github repository.

  • And finally how to use Docker's multi-stage builds and Go's ldflags to massively reduce the final image size.

Installation

go get -u go.xitonix.io/dockered