From 49d9eacceb3be6dafc01af20d1c8aa034ae4150b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20=28Bit-Man=29=20Rodr=C3=ADguez?= Date: Sun, 24 Mar 2024 21:13:36 -0300 Subject: [PATCH] Fix log creation failure --- Documentation/Build/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/Build/Dockerfile b/Documentation/Build/Dockerfile index bb4e041..ab1279b 100644 --- a/Documentation/Build/Dockerfile +++ b/Documentation/Build/Dockerfile @@ -43,12 +43,6 @@ FROM php:8.1-apache RUN mkdir /DATA && \ mkdir /DATA/HRConvert2 -# Set permissions for required directories. -RUN chmod -R 0755 /DATA && \ - chown -R www-data:www-data /DATA && \ - chmod -R 0755 /var/www/html && \ - chown -R www-data:www-data /var/www/html - # Set the working directory in the container. WORKDIR /var/www/html/HRProprietary @@ -87,6 +81,12 @@ RUN cp HRConvert2/Documentation/Build/php.ini /usr/local/etc/php.ini RUN cp HRConvert2/index.html /var/www/html/index.html RUN cp HRConvert2/index.html /var/www/html/HRProprietary/index.html +# Set permissions for required directories. +RUN chmod -R 0755 /DATA && \ + chown -R www-data:www-data /DATA && \ + chmod -R 0755 /var/www/html && \ + chown -R www-data:www-data /var/www/html + # Expose the ports Apache listens on to the host. # Set these to whatever ports suits your needs. EXPOSE 80