diff --git a/Dockerfile b/Dockerfile index bd26b684..c058caa1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ WORKDIR /workspace ARG GOPROXY COPY go.mod go.sum ./ -RUN go mod download +RUN go mod download && go mod verify ARG COMMIT_SHA diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 9cc614a3..b653f293 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -10,7 +10,7 @@ WORKDIR /workspace ARG GOPROXY COPY go.mod go.sum ./ -RUN go mod download +RUN go mod download && go mod verify ARG COMMIT_SHA diff --git a/Dockerfile.distroless b/Dockerfile.distroless index a88e2fc4..c8bf6e27 100644 --- a/Dockerfile.distroless +++ b/Dockerfile.distroless @@ -10,7 +10,7 @@ WORKDIR /workspace ARG GOPROXY COPY go.mod go.sum ./ -RUN go mod download +RUN go mod download && go mod verify ARG COMMIT_SHA