fix: create .env, run migrations, set up Winter CMS in Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -29,11 +29,11 @@ COPY . .
|
|||||||
|
|
||||||
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
||||||
|
|
||||||
RUN php artisan winter:version 2>/dev/null || true
|
RUN cp .env.example .env && \
|
||||||
|
php artisan key:generate --force && \
|
||||||
RUN php artisan key:generate --force 2>/dev/null || true
|
touch storage/database.sqlite && \
|
||||||
|
php artisan winter:up --force && \
|
||||||
RUN chown -R www-data:www-data /var/www/html && \
|
chown -R www-data:www-data /var/www/html && \
|
||||||
chmod -R 755 /var/www/html && \
|
chmod -R 755 /var/www/html && \
|
||||||
chmod -R 777 storage bootstrap/cache themes plugins
|
chmod -R 777 storage bootstrap/cache themes plugins
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user