Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
added option  `go mod verify` for pre-downloading dependencies and only redownloading them in subsequent builds if they change.
  • Loading branch information
Euler-B authored Feb 19, 2024
1 parent 980010b commit 7f408ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL maintainer="Eduardo Bravo <eduardojosebb.matescience@gmail.com>"
RUN apk --no-cache add ca-certificates && update-ca-certificates
WORKDIR /src
COPY ./go.mod ./go.sum ./
RUN go mod download
RUN go mod download && go mod verify
COPY ./ ./
RUN CGO_ENABLED=0 GOFLAGS="-tags=timetzdata" \
go build -ldflags="-s -w" -trimpath -o ./dist/ ./...
Expand Down

0 comments on commit 7f408ee

Please sign in to comment.