-
-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2255 - Add Dockerfile with PHP8.1 and update kernel files
- Loading branch information
Showing
5 changed files
with
65 additions
and
4 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,39 @@ | ||
FROM composer:2.0.8 as composer | ||
FROM php:8.1-rc-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 | ||
|
||
RUN docker-php-ext-install zip gmp intl mysqli && \ | ||
docker-php-ext-enable psr | ||
|
||
# Install Zephir parser | ||
RUN PHP_INI_DIR="$(dirname "$(php -i | grep /.+/conf.d/.+.ini -oE | head -n 1)")" && \ | ||
cd /opt && \ | ||
git clone -b "development" \ | ||
--depth 1 \ | ||
-q https://github.com/phalcon/php-zephir-parser \ | ||
php-zephir-parser && \ | ||
cd php-zephir-parser || exit 1 && \ | ||
phpize && \ | ||
./configure --with-php-config="$(command -v php-config)" --enable-zephir_parser && \ | ||
make -j"$(getconf _NPROCESSORS_ONLN)" && \ | ||
sudo make install && \ | ||
echo 'extension="zephir_parser.so"' |\ | ||
sudo tee "$PHP_INI_DIR/zephir_parser.ini" && \ | ||
php --ri "Zephir Parser" | ||
|
||
COPY --from=composer /usr/bin/composer /usr/local/bin/composer | ||
|
||
CMD ["php-fpm"] |
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
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