aboutsummaryrefslogtreecommitdiffstats
path: root/httpserver/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'httpserver/Dockerfile')
-rw-r--r--httpserver/Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/httpserver/Dockerfile b/httpserver/Dockerfile
index 99acb9a..9b801d4 100644
--- a/httpserver/Dockerfile
+++ b/httpserver/Dockerfile
@@ -27,4 +27,8 @@ RUN chmod 644 /usr/local/apache2/conf/httpd.conf
RUN chmod 644 /usr/lib/x86_64-linux-gnu/libjwt.so.1
RUN chmod 644 /usr/local/apache2/modules/mod_authnz_jwt.so
RUN touch /usr/local/apache2/htdocs/index.html
-CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
+CMD if [ -f /etc/apache2/certs/cacert.pem ]; then cp /etc/apache2/certs/cacert.pem /etc/apache2/certs/truststore.pem; fi \
+ && if [ -f /etc/apache2/certs/cert.pem ]; then cp /etc/apache2/certs/cert.pem /etc/apache2/certs/keystore.pem; fi \
+ && chmod 777 /usr/local/apache2/htdocs \
+ && cp /usr/local/apache2/conf/upload.php /usr/local/apache2/htdocs/upload.php \
+ && /usr/sbin/apache2ctl -D FOREGROUND