another fix

This commit is contained in:
2025-12-05 19:30:36 +01:00
parent 539f9c7cac
commit b42420b7c6
2 changed files with 6 additions and 7 deletions

View File

@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1
FROM php:8.3-fpm-alpine AS php_build
ENV COMPOSER_ALLOW_SUPERUSER=1
@@ -37,12 +39,11 @@ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html
COPY composer.json composer.lock ./
# Copy full application so artisan is available for composer scripts when desired.
COPY . .
RUN set -eux; \
composer install --no-dev --prefer-dist --optimize-autoloader --no-interaction
COPY . .
composer install --no-dev --prefer-dist --optimize-autoloader --no-interaction --no-progress --no-scripts
RUN set -eux; \
mkdir -p storage/app/public storage/logs bootstrap/cache; \
@@ -64,6 +65,3 @@ COPY --from=php_app /var/www/html/storage/app/public /var/www/html/storage/app/p
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
# syntax=docker/dockerfile:1
FROM php:8.3-fpm-alpine AS php_build