Created
July 2, 2024 01:35
-
-
Save up1/c568ac1b44e71caf7eb4bc9094f60396 to your computer and use it in GitHub Desktop.
Go :: gomod download vs tidy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.22.4-alpine3.19 as builder | |
WORKDIR /app | |
COPY go.mod go.sum ./ | |
RUN go mod download | |
COPY . . | |
RUN CGO_ENABLED=0 GOOS=linux go build -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment