Skip to content

Commit

Permalink
fix: Remove Infection during Docker release (#7937)
Browse files Browse the repository at this point in the history
It's not needed in the releases, it wouldn't be installed since there's `--no-dev`, but it still causes errors during Composer dependencies installation.
  • Loading branch information
Wirone committed Apr 11, 2024
1 parent 5aae628 commit 64567d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ COPY --from=composer/composer:2-bin /composer /usr/local/bin/composer
FROM base-dev as vendor
COPY composer.json /fixer/composer.json
WORKDIR /fixer
RUN composer install --prefer-dist --no-dev --optimize-autoloader --no-scripts
RUN composer remove --dev infection/infection --no-update \
&& composer install --prefer-dist --no-dev --optimize-autoloader --no-scripts

FROM base as dist

Expand Down

0 comments on commit 64567d1

Please sign in to comment.