Files
id_configurator/tests/dockerfiles/ConfigUrl.Dockerfile
T
2026-09-07 07:15:58 +02:00

15 lines
594 B
Docker

FROM debian:trixie-slim AS target
FROM interdiode/id-configurator:latest AS configuration
ARG CONFIG_REPO_PORT
ARG CONFIG_URL_CACERT_CONTENT
COPY --from=target / /src/
RUN id-configurator apply \
--config-url "https://host.docker.internal:${CONFIG_REPO_PORT}/config.yaml" \
--config-url-cacert-content "$CONFIG_URL_CACERT_CONTENT" \
--src /src --dst /dst
FROM target AS runtime
COPY --from=configuration /dst/ /
RUN grep -qx \
'test-only certificate fetched via --config-url by the id-configurator integration tests' \
/usr/local/share/ca-certificates/config-url-marker.crt