FROM reg.cadoles.com/proxy_cache/library/debian:stable-slim RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update -y && \ apt-get install -y libapache2-mod-shib php-fpm RUN a2enmod rewrite expires headers remoteip ssl \ proxy proxy_fcgi proxy_http proxy_balancer \ lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat EXPOSE 80 COPY files/common/healthcheck /usr/local/share/cadoles/healthcheck COPY files/common/scripts /usr/local/share/cadoles/scripts SHELL ["/bin/bash", "-c"] CMD ["/bin/bash"] # ========= Child image build triggers ========== ONBUILD COPY . /app ONBUILD ARG ADDITIONAL_PACKAGES ONBUILD ARG INSTALL_DEPENDENCIES ONBUILD ARG INSTALL_COMPOSER_DEPENDENCIES ONBUILD ARG INSTALL_NPM_DEPENDENCIES ONBUILD RUN . /usr/local/share/cadoles/scripts/install-dependencies.sh