# Stage 2 of the AtroPIM image pipeline: takes the vendor-built base image
# (atrocore/docker, target "pdf") and layers the secret-free entrypoint
# wrapper on top. The base image reference is injected via BASE_IMAGE so the
# vendor Dockerfile stays untouched (pinned flake input).
ARG BASE_IMAGE
FROM ${BASE_IMAGE}

COPY entrypoint.sh /entrypoint.sh
COPY entrypoint-prepare-pim.php /entrypoint-prepare-pim.php

RUN chmod +x /entrypoint.sh

CMD ["/entrypoint.sh"]
