-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM php:8.1-cli | ||
|
||
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" | ||
|
||
# install dependencies | ||
RUN apt update && apt install -y --no-install-recommends \ | ||
libvips42 \ | ||
libffi-dev \ | ||
libexif-dev \ | ||
git \ | ||
unzip \ | ||
zip | ||
|
||
COPY --from=ghcr.io/mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
# install composer | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
# Install PHP extensions | ||
RUN install-php-extensions zip gd imagick exif ffi xdebug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
services: | ||
tests: | ||
build: ./ | ||
working_dir: /project | ||
command: bash -c "composer install && ./vendor/bin/phpunit" | ||
volumes: | ||
- ./:/project | ||
analysis: | ||
build: ./ | ||
working_dir: /project | ||
command: bash -c "composer install && ./vendor/bin/phpstan analyze --memory-limit=512M" | ||
volumes: | ||
- ./:/project | ||
cs: | ||
build: ./ | ||
working_dir: /project | ||
command: bash -c "composer install && ./vendor/bin/php-cs-fixer fix --allow-risky=yes" | ||
volumes: | ||
- ./:/project |