2024-05-15 16:23:53 +04:00
|
|
|
# -*- coding: utf-8 mode: dockerfile -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
|
|
ARG NDIST=12
|
|
|
|
ARG REGISTRY=pubdocker.univ-reunion.fr
|
|
|
|
|
|
|
|
FROM $REGISTRY/src/base as base
|
|
|
|
FROM $REGISTRY/src/instantclient as instantclient
|
|
|
|
FROM $REGISTRY/src/php as php
|
2024-05-23 18:26:33 +04:00
|
|
|
FROM $REGISTRY/src/legacytools as legacytools
|
2024-05-15 16:23:53 +04:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
FROM debian:${NDIST}-slim as builder
|
|
|
|
ARG APT_MIRROR SEC_MIRROR APT_PROXY TIMEZONE
|
|
|
|
ENV APT_MIRROR=$APT_MIRROR SEC_MIRROR=$SEC_MIRROR APT_PROXY=$APT_PROXY TIMEZONE=$TIMEZONE
|
|
|
|
|
|
|
|
COPY --from=base /g/ /g/
|
|
|
|
COPY --from=base /src/ /src/
|
|
|
|
RUN /g/build core lite _builder
|
|
|
|
RUN /g/build _su-exec_builder
|
|
|
|
|
|
|
|
COPY --from=instantclient /g/ /g/
|
|
|
|
COPY --from=instantclient /src/ /src/
|
|
|
|
RUN /g/build _instantclient_builder
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
FROM debian:${NDIST}-slim
|
|
|
|
ARG APT_MIRROR SEC_MIRROR APT_PROXY TIMEZONE
|
|
|
|
ENV APT_MIRROR=$APT_MIRROR SEC_MIRROR=$SEC_MIRROR APT_PROXY=$APT_PROXY TIMEZONE=$TIMEZONE
|
|
|
|
|
|
|
|
COPY --from=base /g/ /g/
|
|
|
|
COPY --from=builder /src/su-exec/su-exec /g/
|
|
|
|
RUN /g/build
|
|
|
|
|
2024-05-23 18:26:33 +04:00
|
|
|
COPY --from=legacytools /g/ /g/
|
|
|
|
RUN /g/build nutools
|
|
|
|
|
2024-05-15 16:23:53 +04:00
|
|
|
COPY --from=php /g/ /g/
|
|
|
|
RUN /g/build -a @apache-php-cas php-utils
|
|
|
|
|
|
|
|
COPY --from=instantclient /g/ /g/
|
|
|
|
COPY --from=builder /opt/oracle/ /opt/oracle/
|
|
|
|
RUN /g/build instantclient
|
|
|
|
|
|
|
|
EXPOSE 80 443
|
|
|
|
ENTRYPOINT ["/g/entrypoint"]
|