Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
php8.5-bcmath \
php8.5-intl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Check warning on line 126 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build Check

Empty continuation lines will become errors in a future release

NoEmptyContinuation: Empty continuation line More info: https://docs.docker.com/go/dockerfile/rule/no-empty-continuation/

# Configure PHP: Register all PHP versions and set php8.5 as default
RUN update-alternatives --install /usr/bin/php php /usr/bin/php8.1 81 \
Expand All @@ -139,6 +139,16 @@
--filename=composer \
&& chmod +x /usr/local/bin/composer

# Install global PHP QA tools needed by workflows that don't run composer install.
# (php-cs-fixer and phpcs are invoked directly in lint workflows.)
RUN curl -fsSL https://cs.symfony.com/download/php-cs-fixer-v3.phar -o /usr/local/bin/php-cs-fixer \
&& chmod +x /usr/local/bin/php-cs-fixer \
Comment thread
LegeBeker marked this conversation as resolved.
&& mkdir -p /opt/composer \
&& COMPOSER_HOME=/opt/composer composer global require --no-interaction --no-progress squizlabs/php_codesniffer:^3 phpstan/phpstan:^2 \
Comment thread
LegeBeker marked this conversation as resolved.
&& ln -sf /opt/composer/vendor/bin/phpcs /usr/local/bin/phpcs \
&& ln -sf /opt/composer/vendor/bin/phpcbf /usr/local/bin/phpcbf \
&& ln -sf /opt/composer/vendor/bin/phpstan /usr/local/bin/phpstan

# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
Expand Down