diff options
Diffstat (limited to 'docker/tests/php81')
| -rw-r--r-- | docker/tests/php81/Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docker/tests/php81/Dockerfile b/docker/tests/php81/Dockerfile new file mode 100644 index 0000000..bcd805a --- /dev/null +++ b/docker/tests/php81/Dockerfile @@ -0,0 +1,25 @@ +# Setup php, apache and stud.ip +FROM php:8.1-cli + +# Install system requirements +RUN apt update && apt install -y --no-install-recommends \ + default-mysql-client default-libmysqlclient-dev \ + zlib1g-dev libpng-dev libjpeg-dev libonig-dev libzip-dev libicu-dev \ + lsb-release \ + zip \ + tar \ + libwebp-dev \ + && rm -rf /var/lib/apt/lists/* + +# Install php extensions +RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-webp +RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli pdo pdo_mysql zip + +# Install node/npm +RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - +RUN apt update && apt install -y --no-install-recommends nodejs \ + curl apt-transport-https ca-certificates gnupg unzip git \ + && rm -rf /var/lib/apt/lists/* + +# Install composer +COPY --from=composer /usr/bin/composer /usr/bin/composer |
