fix(docker): build without gitignored composer lock files
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
FROM composer:2 AS vendor
|
FROM composer:2 AS vendor
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY composer.json composer.lock symfony.lock ./
|
COPY composer.json ./
|
||||||
RUN composer install --no-dev --no-scripts --prefer-dist --no-interaction --ignore-platform-reqs
|
RUN composer update --no-dev --no-scripts --prefer-dist --no-interaction --ignore-platform-reqs
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN composer dump-autoload --classmap-authoritative --no-dev \
|
RUN composer dump-autoload --classmap-authoritative --no-dev \
|
||||||
&& composer run-script --no-dev post-install-cmd || true
|
&& composer run-script --no-dev post-install-cmd || true
|
||||||
|
|||||||
Reference in New Issue
Block a user