From b9fdd33fa4610b8010ff034de1601fae9a12219e Mon Sep 17 00:00:00 2001 From: Ahmed Darrazi Date: Tue, 16 Dec 2025 21:21:20 +0100 Subject: [PATCH] bugfixes --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8ab903aa..2e8a2aa3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,7 +88,7 @@ COPY --chown=www-data:www-data . . COPY --from=node-builder --chown=www-data:www-data /app/public/build ./public/build # Copy environment file from docker.env to .env if .env doesn't exist -RUN if [ ! -f .env ]; then cp docker.env .env; fi +# RUN if [ ! -f .env ]; then cp docker.env .env; fi # Generate APP_KEY if not present (required for some Composer operations) RUN if ! grep -q "APP_KEY=base64:" .env; then \ @@ -156,4 +156,4 @@ HEALTHCHECK --interval=60s --timeout=10s --start-period=30s --retries=5 \ CMD curl -f http://localhost:80/health || curl -f http://localhost:80/test.php || exit 1 # Start supervisor -CMD ["sh", "-c", "mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache && chown -R www-data:www-data storage bootstrap/cache && chmod -R 775 storage bootstrap/cache && touch storage/installed public/installed && if [ -f .env ]; then chmod 666 .env || true; fi && php artisan optimize:clear && /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf"] +CMD ["sh", "-c", "mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache && chown -R www-data:www-data storage bootstrap/cache && chmod -R 775 storage bootstrap/cache && touch storage/installed public/installed && if [ -f .env ]; then chmod 666 .env; fi && php artisan optimize:clear && /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf"]