From 1f46df0d609e736ed36d037b07f49cc9ca8940f5 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Fri, 6 Sep 2024 20:12:37 +0200 Subject: [PATCH] Dockerfile: add go mod verify Signed-off-by: Nicola Murino --- Dockerfile | 2 +- Dockerfile.alpine | 2 +- Dockerfile.distroless | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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