From 470aaf2bef4ba04ebba7b845f2db1c54db8ea329 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Fri, 27 Nov 2020 16:43:00 +0100 Subject: [PATCH] Allow building the container from a checkout created with umask 077 Previously, the permissions were just copied from the git checkout, i.e. if this was done with umask 077, files and directories in the container would end up with mode 700 or 600, for example /entrypoint-db-init/application had mode 700. --- deps.Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/deps.Dockerfile b/deps.Dockerfile index e88f935..8a42b27 100644 --- a/deps.Dockerfile +++ b/deps.Dockerfile @@ -24,6 +24,7 @@ RUN ["perl", "-pi", "-e", "if (/Listen/) { s/80/8080/ }", "/etc/apache2/ports.co RUN ["perl", "-pi", "-e", "if (/VirtualHost/) { s/80/8080/ }", "/etc/apache2/sites-available/000-default.conf"] EXPOSE 8080 +RUN ["chmod", "-R", "u=rwX,go=rX", "/entrypoint-db-init"] RUN ["chmod", "o+x", "/var/log/apache2"] RUN ["chown", "www-data:www-data", "/var/run/apache2"] RUN ["ln", "-vs", "/data/etc/icingaweb2", "/etc/icingaweb2"]