From a33d406d06c07318dcd79e8d8b5424cc30958116 Mon Sep 17 00:00:00 2001 From: "Mr. Senko" Date: Mon, 13 Apr 2020 23:47:55 +0300 Subject: [PATCH] Don't remove & create the dir, just chmod The original inspiration from: https://github.com/thesteve0/myDockerImages/blob/master/simpleNoRoot/Dockerfile says: > need to change some permissions to allow non-root user to start things > had to do these steps to give the httpd deamon the ability to. > This actually appears due to a bug with Windows and Mac. It looks like > we could have just "ls" on the directory to get the chmod to stick but this seems to not be the case for us --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1cd30edb7a..9b4dc31563 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf && \ sed -i 's!ErrorLog logs/ssl_error_log!ErrorLog "/dev/stderr"!' /etc/httpd/conf.d/ssl.conf && \ sed -i 's!TransferLog logs/ssl_access_log!TransferLog "/dev/stdout"!' /etc/httpd/conf.d/ssl.conf && \ sed -i 's!CustomLog logs/ssl_request_log!CustomLog "/dev/stdout"!' /etc/httpd/conf.d/ssl.conf && \ - rm -rf /run/httpd && mkdir /run/httpd && chmod -R a+rwx /run/httpd + chmod -R a+rwx /run/httpd COPY ./etc/kiwi-httpd.conf /etc/httpd/conf.d/ ENV PATH /venv/bin:${PATH} \