|
|
|
@ -37,9 +37,10 @@ RUN apt-get update \
|
|
|
|
|
wamerican \
|
|
|
|
|
whois \
|
|
|
|
|
&& apt-get clean \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
STOPSIGNAL SIGWINCH
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
|
&& curl --silent --location --output /usr/local/bin/dumb-init \
|
|
|
|
|
https://github.com/Yelp/dumb-init/releases/download/v1.2.4/dumb-init_1.2.4_x86_64 \
|
|
|
|
|
&& chmod +x /usr/local/bin/dumb-init
|
|
|
|
|
|
|
|
|
|
COPY docker/apache-webdb-foreground /usr/local/bin/
|
|
|
|
|
COPY testca/root/ca.crt.pem /usr/local/share/ca-certificates/testca_root.crt
|
|
|
|
@ -64,11 +65,12 @@ RUN a2ensite www.cacert.localhost ; \
|
|
|
|
|
a2enmod ssl ; \
|
|
|
|
|
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 ; \
|
|
|
|
|
curl --silent --remote-name http://www.cacert.org/certs/root_X0F.crt ; \
|
|
|
|
|
curl --silent --remote-name http://www.cacert.org/certs/class3_X0E.crt ; \
|
|
|
|
|
update-ca-certificates
|
|
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
EXPOSE 443
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
|
|
|
|
|
CMD ["/usr/local/bin/apache-webdb-foreground"]
|
|
|
|
|