33 lines
996 B
Docker
33 lines
996 B
Docker
FROM reg.cadoles.com/proxy_cache/library/debian:bookworm-slim
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
apt-get update -y && apt-get upgrade -y
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
apt-get install -y libapache2-mod-shib php-fpm curl
|
|
|
|
RUN a2enmod rewrite expires headers remoteip ssl \
|
|
proxy proxy_fcgi proxy_http proxy_balancer \
|
|
lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
apt-get clean -y
|
|
|
|
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 bash /usr/local/share/cadoles/scripts/install-dependencies.sh
|