fixed permissions to php log

This commit is contained in:
tms 2023-09-22 21:52:55 +02:00
parent 10c60dc71b
commit 749bfd9470
1 changed files with 3 additions and 2 deletions

View File

@ -37,13 +37,14 @@ RUN mkdir -p /var/www/html
# Fetch Omeka-S
WORKDIR /tmp
ADD https://github.com/omeka/omeka-s/releases/download/v4.0.4/omeka-s-4.0.4.zip /tmp
RUN unzip omeka-s-4.0.4.zip -d /var/www/html/
RUN unzip omeka-s-4.0.4.zip -d /var/www/html/ && rm omeka-s-4.0.4.zip
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
RUN chown -R nobody.nobody /var/www/html && \
chown -R nobody.nobody /run && \
chown -R nobody.nobody /var/lib/nginx && \
chown -R nobody.nobody /var/log/nginx
chown -R nobody.nobody /var/log/nginx && \
chown -R nobody.nobody /var/log/php82
# Switch to use a non-root user from here on