diff --git a/Dockerfile b/Dockerfile index 2693277..17f7059 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:experimental +# syntax=docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 # Build the manager binary FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.24 as builder ARG TARGETOS @@ -27,7 +27,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static:nonroot +FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static:nonroot@sha256:f7f8f729987ad0fdf6b05eeeae94b26e6a0f613bdf46feea7fc40f7bd72953e6 LABEL source_repository="https://github.com/sapcc/disco" LABEL org.opencontainers.image.source="https://github.com/sapcc/disco" WORKDIR /