Skip to content

Instantly share code, notes, and snippets.

@up1
Created July 2, 2024 01:35
Show Gist options
  • Save up1/c568ac1b44e71caf7eb4bc9094f60396 to your computer and use it in GitHub Desktop.
Save up1/c568ac1b44e71caf7eb4bc9094f60396 to your computer and use it in GitHub Desktop.
Go :: gomod download vs tidy
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