22 lines
784 B
Docker
22 lines
784 B
Docker
FROM quay.io/perl/base-os:v3.10-2
|
|
ENV BUILD_VERSION 1
|
|
USER root
|
|
WORKDIR /web
|
|
VOLUME /git
|
|
VOLUME /web/config
|
|
RUN apk --no-cache upgrade
|
|
RUN apk --no-cache add apache2 apache2-utils apache2-proxy apache2-ssl apr-util-dbm_db
|
|
#RUN mkdir /run/apache2; chown apache:apache /run/apache2
|
|
RUN mv /etc/apache2/conf.d/proxy.conf /etc/apache2/conf.d/proxy.conf.disabled
|
|
RUN ln -s /dev/stderr /var/log/apache2/error.log
|
|
RUN ln -s /dev/stdout /var/log/apache2/access.log
|
|
|
|
RUN mkdir -p /var/www/empty; touch /var/www/empty/ok.txt
|
|
|
|
# allow configurations to mark requests as "don't log"
|
|
RUN perl -i -pe 's{^(\s+CustomLog logs/access.log combined)$}{$1 env=!dontlog};' /etc/apache2/httpd.conf
|
|
RUN echo "IncludeOptional /web/config/*.conf" >> /etc/apache2/httpd.conf
|
|
|
|
ADD run-httpd /run.sh
|
|
CMD /run.sh
|