From 51682cf604505197e8e6e5e5c38391d6fe5fbb0c Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Mon, 30 Mar 2020 19:51:28 +0100 Subject: [PATCH] Don't assume root to avoid an SCC issue --- Dockerfile | 6 +++++- cfg/httpd.conf | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1700914..4fd3bcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,11 @@ ENV VERSION=${version} COMMIT=${commit} MAVEN_VERSION=${maven_version} COPY cfg/httpd.conf /etc/httpd/conf -EXPOSE 443 +EXPOSE 8443 + + +RUN chmod -R a+rwx /var/run/httpd +USER 1001 ENTRYPOINT apachectl -DFOREGROUND diff --git a/cfg/httpd.conf b/cfg/httpd.conf index cf22646..e951a9b 100644 --- a/cfg/httpd.conf +++ b/cfg/httpd.conf @@ -5,7 +5,7 @@ ServerRoot "/etc/httpd" -Listen 443 +Listen 8443 Include conf.modules.d/*.conf