diff --git a/Dockerfile b/Dockerfile index 8c8b7a30..896a8ccb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # Step 1: Modules caching -FROM golang:1.23-alpine3.20@sha256:c694a4d291a13a9f9d94933395673494fc2cc9d4777b85df3a7e70b3492d3574 AS modules +FROM golang:1.23-alpine3.20@sha256:9a31ef0803e6afdf564edc8ba4b4e17caed22a0b1ecd2c55e3c8fdd8d8f68f98 AS modules COPY go.mod go.sum /modules/ WORKDIR /modules RUN apk add --no-cache git RUN go mod download # Step 2: Builder -FROM golang:1.23-alpine3.20@sha256:c694a4d291a13a9f9d94933395673494fc2cc9d4777b85df3a7e70b3492d3574 AS builder +FROM golang:1.23-alpine3.20@sha256:9a31ef0803e6afdf564edc8ba4b4e17caed22a0b1ecd2c55e3c8fdd8d8f68f98 AS builder COPY --from=modules /go/pkg /go/pkg COPY . /app WORKDIR /app