web-base/docker/php/Dockerfile

23 lines
812 B
Docker
Raw Normal View History

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 && \
2022-11-27 15:58:44 +01:00
apt-get install -y libyaml-dev libzip-dev libgmp-dev libpng-dev gnupg2d && \
2022-11-19 01:15:34 +01:00
apt-get clean && \
2022-11-27 15:58:44 +01:00
pecl install yaml && docker-php-ext-enable yaml && \
docker-php-ext-install gd
2022-06-01 12:28:50 +02:00
# Runkit (no stable release available)
RUN pecl install runkit7-4.0.0a3 && docker-php-ext-enable runkit7 && \
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
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