dockerfile: switch multi-arch base to ghcr.io/hanzoai/debian12:base
Replace gcr.io/distroless/base@sha256:${DISTROLESS_SHA} with the
Hanzo-mirrored ghcr.io/hanzoai/debian12:base@sha256:${DISTROLESS_SHA}.
SHA passed in via build-arg is preserved so caller pin discipline
remains identical; only the registry/path changes.
TODO flagged: CI workflows pulling this base may need a PAT secret
(GHCR_PULL_TOKEN) since the default GITHUB_TOKEN scopes to the repo's
own package only.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
ARG DISTROLESS_SHA="pass-a-valid-docker-sha-otherwise-this-will-fail"
|
||||
|
||||
FROM gcr.io/distroless/base@sha256:${DISTROLESS_SHA}
|
||||
# Hanzo-mirrored distroless base. SHA passed in via build-arg is
|
||||
# preserved verbatim — only the registry/path is changed from gcr.io/*
|
||||
# to ghcr.io/hanzoai/* so caller pin discipline remains identical.
|
||||
FROM ghcr.io/hanzoai/debian12:base@sha256:${DISTROLESS_SHA}
|
||||
LABEL maintainer="o11y"
|
||||
WORKDIR /usr/local/foundryctl
|
||||
|
||||
@@ -10,3 +13,7 @@ ARG ARCH
|
||||
COPY ./target/${OS}-${ARCH}/foundryctl /usr/local/bin/foundryctl
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/foundryctl"]
|
||||
|
||||
# TODO(ghcr-auth): CI workflows building this image must `docker login`
|
||||
# to ghcr.io/hanzoai with a PAT (secret: GHCR_PULL_TOKEN) — the default
|
||||
# GITHUB_TOKEN scopes to the repo's own package only.
|
||||
|
||||
Reference in New Issue
Block a user