-
-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2440 - Add docker files with PHP 8.4
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
alias test-ext='php -d extension=ext/modules/stub.so vendor/bin/phpunit --bootstrap tests/ext-bootstrap.php --testsuite Extension' | ||
alias test-zephir='php vendor/bin/phpunit --colors=always --testsuite Zephir' | ||
alias test-all='test-ext; test-zephir' |
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,25 @@ | ||
FROM composer:latest AS composer | ||
FROM php:8.4-fpm | ||
|
||
RUN CPU_CORES="$(getconf _NPROCESSORS_ONLN)"; | ||
ENV MAKEFLAGS="-j${CPU_CORES}" | ||
|
||
RUN apt update -y && apt install -y \ | ||
wget \ | ||
zip \ | ||
git \ | ||
apt-utils \ | ||
sudo \ | ||
libicu-dev \ | ||
libgmp-dev \ | ||
libzip-dev && \ | ||
pecl install psr zephir_parser #xdebug | ||
|
||
RUN docker-php-ext-install zip gmp intl mysqli && \ | ||
docker-php-ext-enable psr zephir_parser #xdebug | ||
|
||
COPY --from=composer /usr/bin/composer /usr/local/bin/composer | ||
# Bash script with helper aliases | ||
COPY ./.bashrc /root/.bashrc | ||
|
||
CMD ["php-fpm"] |