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.
20 lines
724 B
Docker
20 lines
724 B
Docker
ARG DISTROLESS_SHA="pass-a-valid-docker-sha-otherwise-this-will-fail"
|
|
|
|
# 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
|
|
|
|
ARG OS="linux"
|
|
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.
|