Skip to content

Conversation

@imax9000
Copy link

Usually the point of copying go.mod and go.sum separately is to let docker build use cached go mod download layer. Copying in all other sources before go mod download defeats that purpose and would trigger a full download on every build if the code has changed.

Usually the point of copying go.mod and go.sum separately is to let `docker build` use cached `go mod download` layer. Copying in all other sources before `go mod download` defeats that purpose and would trigger a full download on every build if the code has changed.
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.

1 participant