2019-04-19 15:26:58 +00:00
|
|
|
FROM quay.io/perl/base-os:v3.9.1
|
2019-01-26 10:42:45 +00:00
|
|
|
ENV BUILD_VERSION 1
|
2017-09-23 08:44:27 +00:00
|
|
|
USER root
|
|
|
|
WORKDIR /web
|
|
|
|
VOLUME /git
|
|
|
|
VOLUME /web/config
|
2018-02-21 08:04:19 +00:00
|
|
|
RUN apk --no-cache upgrade
|
2019-04-22 17:37:50 +00:00
|
|
|
RUN apk --no-cache add apache2 apache2-utils apache2-proxy apache2-ssl apr-util-dbm_db
|
2017-09-23 08:44:27 +00:00
|
|
|
RUN mkdir /run/apache2; chown apache /run/apache2
|
2017-09-29 08:25:29 +00:00
|
|
|
RUN mv /etc/apache2/conf.d/proxy.conf /etc/apache2/conf.d/proxy.conf.disabled
|
2017-09-23 08:44:27 +00:00
|
|
|
RUN ln -s /dev/stderr /var/log/apache2/error.log
|
|
|
|
RUN ln -s /dev/stdout /var/log/apache2/access.log
|
|
|
|
|
2019-01-26 10:42:45 +00:00
|
|
|
RUN mkdir -p /var/www/empty; touch /var/www/empty/ok.txt
|
2017-10-02 07:18:32 +00:00
|
|
|
|
2017-09-24 04:49:05 +00:00
|
|
|
# allow configurations to mark requests as "don't log"
|
2017-09-24 04:56:32 +00:00
|
|
|
RUN perl -i -pe 's{^(\s+CustomLog logs/access.log combined)$}{$1 env=!dontlog};' /etc/apache2/httpd.conf
|
2017-09-23 08:44:27 +00:00
|
|
|
RUN echo "IncludeOptional /web/config/*.conf" >> /etc/apache2/httpd.conf
|
2017-09-24 04:49:05 +00:00
|
|
|
|
2017-09-23 08:44:27 +00:00
|
|
|
ADD run-httpd /run.sh
|
|
|
|
CMD /run.sh
|