nulib/support/Dockerfile.rundk

31 lines
975 B
Docker
Raw Normal View History

2024-03-27 12:40:36 +04:00
# -*- coding: utf-8 mode: dockerfile -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
2024-03-27 18:19:14 +04:00
ARG NDIST=12
2024-03-27 12:40:36 +04:00
ARG REGISTRY=pubdocker.univ-reunion.fr
2024-03-27 18:19:14 +04:00
2024-03-27 12:40:36 +04:00
FROM $REGISTRY/src/base as base
FROM $REGISTRY/src/php as php
################################################################################
2024-03-27 18:19:14 +04:00
FROM debian:${NDIST}-slim as builder
2024-03-27 12:40:36 +04:00
COPY --from=base /g/ /g/
COPY --from=base /src/ /src/
2024-04-19 11:46:31 +04:00
ARG APT_MIRROR SEC_MIRROR APT_PROXY TIMEZONE
ENV APT_MIRROR=$APT_MIRROR SEC_MIRROR=$SEC_MIRROR APT_PROXY=$APT_PROXY TIMEZONE=$TIMEZONE
2024-03-27 12:40:36 +04:00
RUN /g/build core lite _builder
RUN make -C /src/su-exec
################################################################################
2024-03-27 18:19:14 +04:00
FROM debian:${NDIST}-slim
2024-03-27 12:40:36 +04:00
COPY --from=builder /src/su-exec/su-exec /g/
COPY --from=base /g/ /g/
ARG APT_MIRROR SEC_MIRROR APT_PROXY TIMEZONE
ENV APT_MIRROR=$APT_MIRROR SEC_MIRROR=$SEC_MIRROR APT_PROXY=$APT_PROXY TIMEZONE=$TIMEZONE
RUN /g/build
COPY --from=php /g/ /g/
RUN /g/build @php-cli php-utils
ENTRYPOINT ["/g/entrypoint"]