2022-02-21 00:32:40 +01:00
|
|
|
FROM composer:latest AS composer
|
2022-06-20 19:52:31 +02:00
|
|
|
FROM php:8.0-fpm
|
2021-04-07 19:43:22 +02:00
|
|
|
WORKDIR "/application"
|
2022-11-19 01:15:34 +01:00
|
|
|
RUN mkdir -p /application/core/Configuration /var/www/.gnupg && \
|
|
|
|
chown -R www-data:www-data /application /var/www/ && \
|
|
|
|
chmod 700 /var/www/.gnupg
|
2022-06-01 12:28:50 +02:00
|
|
|
|
|
|
|
# YAML + dev dependencies
|
2022-11-19 01:15:34 +01:00
|
|
|
RUN apt-get update -y && \
|
2023-01-09 15:59:53 +01:00
|
|
|
apt-get install -y libyaml-dev libzip-dev libgmp-dev libpng-dev gnupg2 && \
|
2022-11-27 15:58:44 +01:00
|
|
|
pecl install yaml && docker-php-ext-enable yaml && \
|
2023-01-09 15:59:53 +01:00
|
|
|
docker-php-ext-install gd
|
|
|
|
|
|
|
|
# NodeJS
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get -y install nodejs && \
|
|
|
|
npm install --global yarn
|
2022-06-01 12:28:50 +02:00
|
|
|
|
2022-12-04 13:21:40 +01:00
|
|
|
# Runkit for unit testing (no stable release available)
|
|
|
|
RUN pecl install runkit7-4.0.0a6 && docker-php-ext-enable runkit7 && \
|
2022-06-01 12:28:50 +02:00
|
|
|
echo "runkit.internal_override=1" >> /usr/local/etc/php/conf.d/docker-php-ext-runkit7.ini
|
|
|
|
|
|
|
|
# mysqli, zip, gmp
|
|
|
|
RUN docker-php-ext-install mysqli zip gmp
|
|
|
|
|
2023-01-09 15:59:53 +01:00
|
|
|
# clean cache
|
|
|
|
RUN apt-get clean
|
|
|
|
|
2022-02-21 00:32:40 +01:00
|
|
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
2021-05-04 20:56:47 +02:00
|
|
|
USER www-data
|