Skip to content

Instantly share code, notes, and snippets.

@jogam5
Last active July 21, 2020 19:21
Show Gist options
  • Save jogam5/99c9a3662c780f148125a140fae68b0b to your computer and use it in GitHub Desktop.
Save jogam5/99c9a3662c780f148125a140fae68b0b to your computer and use it in GitHub Desktop.
Create a Dockerfile for GO
# Option 1
go mod init
go build
# Option 2
export GO111MODULE=on
go mod init
go mod download
go mod vendor
#Option 3, 07/21/2020
export GO111MODULE=on
go mod init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment