Skip to content

Conversation

@jhump
Copy link
Contributor

@jhump jhump commented May 15, 2020

With go 1.11, building with modules in a vanilla docker image required installing more junk.

With go1.13, mui simple.

@@ -1,10 +1,6 @@
FROM golang:1.11.10-alpine as builder
FROM golang:1.13.10-alpine3.11 as builder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, i wouldn't have expected the trailing version number on alpine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't strictly necessary. It's to pin the version. You can also specify just golang:1.13-alpine, to leave point release from Go and version entirely from alpine, and it will just pick up latest of each.

I thought including full versions would be good for repeatability -- always using the same version of Go and alpine to build the docker image.

@jhump jhump merged commit 2108c8f into master May 15, 2020
@jhump jhump deleted the jh/use-go-1.13 branch May 15, 2020 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants