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