Skip to content

Commit

Permalink
#2440 - Add docker files with PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Nov 23, 2024
1 parent 90070a6 commit 2173d11
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .docker/8.4/.bashrc
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'
25 changes: 25 additions & 0 deletions .docker/8.4/Dockerfile
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"]

0 comments on commit 2173d11

Please sign in to comment.