Disable Composer scripts during Docker build
This commit is contained in:
+2
-1
@@ -39,7 +39,8 @@ COPY docker/php/php.ini $PHP_INI_DIR/conf.d/app.ini
|
|||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=frontend /app/public/build ./public/build
|
COPY --from=frontend /app/public/build ./public/build
|
||||||
|
|
||||||
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
RUN composer install --no-dev --prefer-dist --no-interaction --no-progress --no-scripts \
|
||||||
|
&& composer dump-autoload --optimize --no-scripts
|
||||||
|
|
||||||
RUN chown -R www-data:www-data storage bootstrap/cache \
|
RUN chown -R www-data:www-data storage bootstrap/cache \
|
||||||
&& chmod -R 775 storage bootstrap/cache
|
&& chmod -R 775 storage bootstrap/cache
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ mkdir -p \
|
|||||||
chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
|
chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
|
||||||
chmod -R ug+rwX /var/www/html/storage /var/www/html/bootstrap/cache
|
chmod -R ug+rwX /var/www/html/storage /var/www/html/bootstrap/cache
|
||||||
|
|
||||||
|
php artisan package:discover --ansi || true
|
||||||
php artisan migrate --force
|
php artisan migrate --force
|
||||||
php artisan storage:link || true
|
php artisan storage:link || true
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
|
|||||||
Reference in New Issue
Block a user