From 3f2c2612d9de258368d377301ae6d92fb21ee16d Mon Sep 17 00:00:00 2001 From: avives Date: Fri, 21 Aug 2026 20:18:05 -0600 Subject: [PATCH] fix: create .env, run migrations, set up Winter CMS in Dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a013f9f..4dbcbf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,11 +29,11 @@ COPY . . RUN composer install --no-dev --optimize-autoloader --no-interaction -RUN php artisan winter:version 2>/dev/null || true - -RUN php artisan key:generate --force 2>/dev/null || true - -RUN chown -R www-data:www-data /var/www/html && \ +RUN cp .env.example .env && \ + php artisan key:generate --force && \ + touch storage/database.sqlite && \ + php artisan winter:up --force && \ + chown -R www-data:www-data /var/www/html && \ chmod -R 755 /var/www/html && \ chmod -R 777 storage bootstrap/cache themes plugins