From d586a18a9e132272472821d67a0a8ba0ed69fc84 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 21 Aug 2025 20:37:44 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 32dca4e52..43fce0bfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,13 +32,14 @@ RUN composer install --prefer-dist --no-dev --optimize-autoloader --no-scripts COPY . /app -RUN php _cleanup.php && rm _cleanup.php \ - && chown -R www-data:www-data /app \ - && chmod -R 755 /app +RUN php _cleanup.php && rm _cleanup.php + +RUN chown -R www-data:www-data /app \ + && find /app -type d -exec chmod 755 {} \; \ + && find /app -type f -exec chmod 644 {} \; RUN echo "*/10 * * * * www-data php /app/cron.php >> /proc/1/fd/1 2>&1" > /etc/cron.d/app-cron \ - && chmod 0644 /etc/cron.d/app-cron \ - && crontab /etc/cron.d/app-cron + && chmod 0644 /etc/cron.d/app-cron COPY install/docker/Caddyfile /etc/caddy/Caddyfile COPY install/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf