2022-02-21 00:32:40 +01:00
|
|
|
FROM composer:latest AS composer
|
|
|
|
FROM php:7.4-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-02-21 00:32:40 +01:00
|
|
|
RUN apt-get update -y && apt-get install libyaml-dev libzip-dev -y && apt-get clean && \
|
|
|
|
pecl install yaml && echo "extension=yaml.so" > /usr/local/etc/php/conf.d/ext-yaml.ini && \
|
|
|
|
docker-php-ext-enable yaml
|
|
|
|
RUN docker-php-ext-install mysqli zip
|
|
|
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
2021-05-04 20:56:47 +02:00
|
|
|
USER www-data
|