[odrs-web/oscp] Port bind changes + mod_ssl



commit a60ec032649a4cc193ddbce0ae8ec882306041e9
Author: Andrea Veri <averi redhat com>
Date:   Mon Nov 12 19:20:34 2018 +0100

    Port bind changes + mod_ssl

 Dockerfile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index bd91af0..4147fa7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,9 @@
 FROM python:3.6.4-alpine3.7
 
+USER ROOT
+
 RUN apk update
-RUN apk add gcc make libc-dev python3-dev libffi-dev openssl-dev shadow apache2 apache2-mod-wsgi
+RUN apk add gcc make libc-dev python3-dev libffi-dev openssl-dev shadow apache2 apache2-mod-wsgi apache2-ssl
 
 ENV ODRS_HOME=/odrs-web \
     LANG=C
@@ -11,9 +13,12 @@ WORKDIR ${ODRS_HOME}
 COPY app_data ${ODRS_HOME}
 
 COPY requirements.txt .
-COPY odrs.gnome.org.conf /etc/httpd/conf.d/000-default.conf
 RUN pip install -r requirements.txt
 
+COPY odrs.gnome.org.conf /etc/apache2/conf.d/000-default.conf
+RUN sed -i 's/Listen 80/Listen 8080' /etc/apache2/httpd.conf
+RUN sed -i 's/Listen 443/Listen 8443' /etc/apache2/conf.d/ssl.conf
+
 RUN useradd -u 1001 -g 0 -d ${ODRS_HOME}/ -r -s /usr/sbin/nologin odrsweb
 
 RUN chown -R 1001:0 ${ODRS_HOME} && \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]