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"
|
2021-05-04 20:56:47 +02:00
|
|
|
RUN mkdir -p /application/core/Configuration
|
|
|
|
RUN chown -R www-data:www-data /application
|
2022-06-01 12:28:50 +02:00
|
|
|
|
|
|
|
# YAML + dev dependencies
|
|
|
|
RUN apt-get update -y && apt-get install libyaml-dev libzip-dev libgmp-dev -y && apt-get clean && \
|
|
|
|
pecl install yaml && docker-php-ext-enable yaml
|
|
|
|
|
|
|
|
# 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
|