Files
o11y-foundry/Dockerfile.multi-arch
Hanzo AI 1c9a452fe2 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.
2026-06-02 03:41:25 -07:00

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.