2020-12-20 14:52:15 +01:00
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2020-12-21 18:44:20 +01:00
|
|
|
gettext \
|
2020-12-20 14:52:15 +01:00
|
|
|
libapache2-mod-php5 \
|
|
|
|
locales-all \
|
|
|
|
mariadb-client \
|
2020-12-21 18:44:20 +01:00
|
|
|
make \
|
|
|
|
netbase \
|
2020-12-20 14:52:15 +01:00
|
|
|
nullmailer \
|
|
|
|
php-apc \
|
2020-12-21 18:44:20 +01:00
|
|
|
php-fpdf \
|
|
|
|
php-gettext \
|
2020-12-20 14:52:15 +01:00
|
|
|
php-mail \
|
|
|
|
php-mail-mime \
|
|
|
|
php-mail-mimedecode \
|
|
|
|
php-net-smtp \
|
|
|
|
php-net-socket \
|
2020-12-21 18:44:20 +01:00
|
|
|
php-tcpdf \
|
2020-12-20 14:52:15 +01:00
|
|
|
php5-apcu \
|
|
|
|
php5-curl \
|
|
|
|
php5-gd \
|
|
|
|
php5-imagick \
|
|
|
|
php5-imap \
|
|
|
|
php5-json \
|
|
|
|
php5-mcrypt \
|
|
|
|
php5-mysql \
|
|
|
|
php5-pspell \
|
|
|
|
php5-recode \
|
|
|
|
psmisc \
|
|
|
|
wamerican \
|
2020-12-21 18:44:20 +01:00
|
|
|
whois \
|
2020-12-20 14:52:15 +01:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
STOPSIGNAL SIGWINCH
|
|
|
|
|
2020-12-23 07:17:06 +01:00
|
|
|
COPY docker/apache-webdb-foreground /usr/local/bin/
|
2020-12-22 08:49:18 +01:00
|
|
|
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-23 07:17:06 +01:00
|
|
|
COPY testca/certs/www.cacert.localhost.crt.pem /etc/apache2/ssl/certs/
|
|
|
|
COPY testca/certs/www.cacert.localhost.key.pem /etc/apache2/ssl/private/
|
2020-12-22 15:51:13 +01:00
|
|
|
COPY testca/certs/cachain.crt.pem /etc/ssl/apache2/certs/combined.crt
|
2020-12-22 08:49:18 +01:00
|
|
|
|
2020-12-23 07:17:06 +01:00
|
|
|
COPY docker/apache-webdb-virtualhost.conf /etc/apache2/sites-available/www.cacert.localhost.conf
|
2020-12-20 14:52:15 +01:00
|
|
|
COPY docker/cacert.conf /etc/apache2/conf-available/
|
|
|
|
COPY docker/php5-cacert.ini /etc/php5/mods-available/cacert.ini
|
|
|
|
COPY docker/feed.rss /usr/local/etc/application/feed.rss
|
|
|
|
|
|
|
|
VOLUME /www
|
|
|
|
|
2020-12-23 07:17:06 +01:00
|
|
|
RUN a2ensite www.cacert.localhost ; \
|
2020-12-20 14:52:15 +01:00
|
|
|
a2dissite 000-default ; \
|
|
|
|
a2enconf cacert ; \
|
|
|
|
a2enmod headers ; \
|
|
|
|
a2enmod rewrite ; \
|
|
|
|
a2enmod ssl ; \
|
2020-12-21 18:44:20 +01:00
|
|
|
ln -s /etc/php5/mods-available/cacert.ini /etc/php5/apache2/conf.d/20-cacert.ini ; \
|
|
|
|
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
|
2020-12-20 14:52:15 +01:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
EXPOSE 443
|
|
|
|
|
2020-12-23 07:17:06 +01:00
|
|
|
CMD ["/usr/local/bin/apache-webdb-foreground"]
|