2020-12-22 08:49:18 +01:00
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
gettext \
|
|
|
|
libapache2-mod-php5 \
|
|
|
|
locales-all \
|
|
|
|
mariadb-client \
|
|
|
|
nullmailer \
|
2020-12-22 14:19:31 +01:00
|
|
|
php5-imap \
|
2020-12-22 08:49:18 +01:00
|
|
|
php5-mysql \
|
|
|
|
zendframework \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
STOPSIGNAL SIGWINCH
|
|
|
|
|
|
|
|
COPY docker/apache-mgr-foreground /usr/local/bin/
|
|
|
|
COPY testca/root/ca.crt.pem /usr/local/share/ca-certificates/testca_root.crt
|
|
|
|
COPY testca/class3/ca.crt.pem /usr/local/share/ca-certificates/testca_class3.crt
|
2020-12-22 15:51:13 +01:00
|
|
|
COPY testca/certs/mgr.cacert.localhost.crt.pem /etc/apache2/ssl/certs/
|
|
|
|
COPY testca/certs/mgr.cacert.localhost.key.pem /etc/apache2/ssl/private/
|
|
|
|
COPY testca/certs/cachain.crt.pem /etc/apache2/ssl/certs/combined.crt
|
|
|
|
COPY testca/class3/ca.crt.pem /etc/apache2/ssl/certs/clientca.crt
|
2020-12-22 08:49:18 +01:00
|
|
|
|
|
|
|
COPY docker/apache-mgr-virtualhost.conf /etc/apache2/sites-available/mgr.cacert.localhost.conf
|
|
|
|
COPY docker/mgr-application.ini /usr/local/etc/
|
|
|
|
|
2020-12-23 22:14:13 +01:00
|
|
|
VOLUME /var/www/mgr
|
2020-12-22 08:49:18 +01:00
|
|
|
|
|
|
|
RUN a2ensite mgr.cacert.localhost ; \
|
|
|
|
a2dissite 000-default ; \
|
|
|
|
a2enmod headers ; \
|
2020-12-22 14:19:31 +01:00
|
|
|
a2enmod rewrite ; \
|
2020-12-22 08:49:18 +01:00
|
|
|
a2enmod ssl ; \
|
|
|
|
cd /usr/local/share/ca-certificates ; \
|
|
|
|
curl -O http://www.cacert.org/certs/root_X0F.crt ; \
|
|
|
|
curl -O http://www.cacert.org/certs/class3_X0E.crt ; \
|
|
|
|
update-ca-certificates
|
|
|
|
|
|
|
|
EXPOSE 443
|
|
|
|
|
|
|
|
CMD ["/usr/local/bin/apache-mgr-foreground"]
|