From 3327d209f75a1b8abc7cc33fa4228976a18bdfa5 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Wed, 22 Sep 2021 19:50:07 +0800 Subject: [PATCH] Pin the base image for v1.7 (#4180) To improve the reproducibility of the images of velero, this commit pins the golang and distroless images to specific tag and digest. Signed-off-by: Daniel Jiang --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bdead4f8f..18674b2fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -FROM --platform=$BUILDPLATFORM golang:1.16 as builder-env +FROM --platform=$BUILDPLATFORM golang:1.16.8 as builder-env ARG GOPROXY ARG PKG @@ -50,7 +50,7 @@ RUN mkdir -p /output/usr/bin && \ go build -o /output/${BIN} \ -ldflags "${LDFLAGS}" ${PKG}/cmd/${BIN} -FROM gcr.io/distroless/base-debian10:nonroot +FROM gcr.io/distroless/base-debian10@sha256:a74f307185001c69bc362a40dbab7b67d410a872678132b187774fa21718fa13 LABEL maintainer="Nolan Brubaker "