auth-yes/spire/Dockerfile.agent
google-labs-jules[bot] 4360d67064 feat: Package generic SPIRE images and simplify compose volume
This implements custom Alpine-based Smart SPIRE Server and Agent Docker
images with self-seeding configuration entrypoints. It also updates
the docker-compose configuration to utilize a single host storage volume
and a dedicated named socket volume. Setup build pipelines are expanded to
compile and push these custom SPIRE images.

Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
2026-08-23 17:20:11 +00:00

14 lines
472 B
Docker

ARG SPIRE_VERSION=1.9.3
FROM ghcr.io/spiffe/spire-agent:${SPIRE_VERSION} AS upstream
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
COPY --from=upstream /opt/spire/bin/spire-agent /usr/local/bin/spire-agent
COPY templates/agent.conf /etc/spire/templates/agent.conf
COPY entrypoint.agent.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["run", "-config", "/opt/spire/agent.conf"]