2021-02-09 12:00:00 +00:00
|
|
|
FROM php:7.4-fpm-buster AS base
|
|
|
|
|
|
|
|
RUN apt update -yqq && apt install -yqq \
|
|
|
|
git \
|
|
|
|
libpng-dev \
|
|
|
|
mariadb-client \
|
|
|
|
zip \
|
|
|
|
zlib1g-dev \
|
|
|
|
&& docker-php-ext-install \
|
|
|
|
exif \
|
|
|
|
gd \
|
|
|
|
pdo_mysql
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
FROM base AS dev
|
|
|
|
|
2021-04-21 12:36:43 +00:00
|
|
|
ARG xdebug_version=2.9.0
|
|
|
|
|
2021-02-09 12:00:00 +00:00
|
|
|
RUN apt update -yqq \
|
|
|
|
&& apt install -yqq \
|
|
|
|
pv \
|
|
|
|
vim \
|
2021-04-21 12:36:43 +00:00
|
|
|
&& pecl install xdebug-${xdebug_version} \
|
2021-02-09 12:00:00 +00:00
|
|
|
&& docker-php-ext-enable xdebug
|
|
|
|
|
2021-04-21 12:38:00 +00:00
|
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
2021-02-09 12:00:00 +00:00
|
|
|
|
2021-04-21 12:42:27 +00:00
|
|
|
WORKDIR /app
|
|
|
|
ENV PATH="/app/bin:$PATH"
|
|
|
|
|
2021-02-09 12:00:00 +00:00
|
|
|
COPY composer.json composer.lock /app/
|
|
|
|
COPY assets /app/assets
|
2021-04-21 12:42:47 +00:00
|
|
|
COPY tools/patches /app/tools/patches
|
2021-02-09 12:00:00 +00:00
|
|
|
RUN composer install
|
|
|
|
|
|
|
|
COPY tools/docker/images/php/configs/php.ini /usr/local/etc/php/conf.d/php.ini
|