diff --git a/Dockerfile b/Dockerfile index d237a905..98cbdafd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # Step 1: Modules caching -FROM golang:1.23-alpine3.20@sha256:6a84ccdb73e005d0ee7bfff6066f230612ca9dff3e88e31bfc752523c3a271f8 AS modules +FROM golang:1.23-alpine3.20@sha256:def59a601e724ddac5139d447e8e9f7d0aeec25db287a9ee1615134bcda266e2 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:6a84ccdb73e005d0ee7bfff6066f230612ca9dff3e88e31bfc752523c3a271f8 AS builder +FROM golang:1.23-alpine3.20@sha256:def59a601e724ddac5139d447e8e9f7d0aeec25db287a9ee1615134bcda266e2 AS builder COPY --from=modules /go/pkg /go/pkg COPY . /app WORKDIR /app