2019-03-25 13:24:59 +00:00
|
|
|
FROM php:7.1.27-apache
|
2019-03-27 07:56:17 +00:00
|
|
|
RUN chown -R www-data:www-data /var/www
|
2019-03-25 13:24:59 +00:00
|
|
|
|
2019-03-27 07:56:17 +00:00
|
|
|
RUN apt update -y
|
|
|
|
RUN apt install --no-install-recommends -y \
|
2019-03-25 13:24:59 +00:00
|
|
|
libicu-dev \
|
2019-03-27 07:56:17 +00:00
|
|
|
libmagickwand-dev \
|
|
|
|
libtidy-dev \
|
|
|
|
libzip-dev \
|
|
|
|
mysql-client \
|
|
|
|
sudo \
|
|
|
|
unzip \
|
|
|
|
zip
|
|
|
|
|
|
|
|
RUN a2enmod rewrite
|
2019-03-25 13:24:59 +00:00
|
|
|
|
|
|
|
RUN docker-php-ext-configure intl
|
2019-03-27 07:56:17 +00:00
|
|
|
RUN docker-php-ext-configure zip --with-libzip
|
|
|
|
RUN docker-php-ext-install \
|
|
|
|
gd \
|
|
|
|
intl \
|
|
|
|
pdo \
|
|
|
|
pdo_mysql \
|
|
|
|
tidy \
|
|
|
|
zip
|
2019-03-25 13:24:59 +00:00
|
|
|
RUN pecl install \
|
|
|
|
xdebug \
|
|
|
|
imagick
|
|
|
|
RUN docker-php-ext-enable \
|
|
|
|
xdebug \
|
|
|
|
imagick
|
|
|
|
|
2019-03-27 07:56:17 +00:00
|
|
|
ADD https://getcomposer.org/installer composer-setup.php
|
|
|
|
RUN php composer-setup.php
|
|
|
|
RUN mv composer.phar /usr/local/bin/composer
|
2019-04-10 10:39:55 +00:00
|
|
|
COPY --chown=www-data:www-data ./composer.* ./
|
2019-03-27 07:56:17 +00:00
|
|
|
RUN sudo -u www-data mkdir public
|
|
|
|
RUN sudo -u www-data composer install
|
|
|
|
|
2019-04-05 08:40:06 +00:00
|
|
|
COPY --chown=www-data:www-data .docker/.env .env
|
|
|
|
|
2019-03-27 07:56:17 +00:00
|
|
|
COPY .docker/xdebug.ini $PHP_INI_DIR/conf.d/
|
|
|
|
COPY .docker/date.ini $PHP_INI_DIR/conf.d/
|
2019-04-10 10:39:55 +00:00
|
|
|
COPY --chown=www-data:www-data ./ ./
|
2019-03-27 07:56:17 +00:00
|
|
|
RUN sudo -u www-data composer vendor-expose
|