|
|
@@ -1,6 +1,6 @@
|
|
|
# This version of Dockerfile is for building without external dependencies.
|
|
|
# Build a multi-platform image e.g. `docker buildx build --push --platform linux/arm64,linux/amd64 --tag external-secrets:dev --file Dockerfile.standalone .`
|
|
|
-FROM golang:1.21.6-alpine AS builder
|
|
|
+FROM golang:1.21.6-alpine@sha256:fd78f2fb1e49bcf343079bbbb851c936a18fc694df993cbddaa24ace0cc724c5 AS builder
|
|
|
ARG TARGETOS
|
|
|
ARG TARGETARCH
|
|
|
ENV CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH}
|
|
|
@@ -12,7 +12,7 @@ COPY . /app/
|
|
|
RUN go build -o external-secrets main.go
|
|
|
|
|
|
|
|
|
-FROM gcr.io/distroless/static AS app
|
|
|
+FROM gcr.io/distroless/static@sha256:9be3fcc6abeaf985b5ecce59451acbcbb15e7be39472320c538d0d55a0834edc AS app
|
|
|
COPY --from=builder /app/external-secrets /bin/external-secrets
|
|
|
|
|
|
# Run as UID for nobody
|