Skip to content
A basic Go development environment using Docker template project
Dockerfile Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Build Go application container image:
$ docker build -t my-go-image .

Run Go application on host port 8080:
$ docker run -it -p 8080:8080 my-go-image

Init a module to get mod.go & sum.go files:
$ go mod init<mod-name>

Resources: here and here

You can’t perform that action at this time.