diff --git a/docker/Dockerfile b/docker/Dockerfile index 9d46aca..eed5510 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -59,9 +59,8 @@ RUN composer install --no-dev --optimize-autoloader --no-interaction COPY --from=frontend-builder /app/public/build/ ./public/build/ # Set proper permissions -RUN chown -R www-data:www-data /var/www/html \ - && chmod -R 755 /var/www/html/storage \ - && chmod -R 755 /var/www/html/bootstrap/cache +RUN chown -R www-data:www-data storage bootstrap/cache public/build \ + && chmod -R 755 storage bootstrap/cache # Create a startup script RUN echo '#!/bin/sh' > /usr/local/bin/start-app \ @@ -81,4 +80,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD php artisan --version || exit 1 # Start the application -CMD ["/usr/local/bin/start-app"] \ No newline at end of file +CMD ["/usr/local/bin/start-app"]