29 lines
1016 B
Docker
29 lines
1016 B
Docker
FROM php:7.1-apache
|
|
|
|
RUN sed -i \
|
|
-e 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' \
|
|
-e 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' \
|
|
-e '/buster-updates/d' \
|
|
/etc/apt/sources.list \
|
|
&& apt-get -o Acquire::Check-Valid-Until=false update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
libfreetype6-dev \
|
|
libjpeg62-turbo-dev \
|
|
libmcrypt-dev \
|
|
libpng-dev \
|
|
libzip-dev \
|
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
|
&& docker-php-ext-install -j"$(nproc)" gd mcrypt mysqli pdo_mysql zip \
|
|
&& a2enmod rewrite \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV APACHE_DOCUMENT_ROOT=/var/www/html/home/web
|
|
|
|
COPY .docker/php/docker-entrypoint.sh /usr/local/bin/farm3-php-entrypoint
|
|
RUN chmod +x /usr/local/bin/farm3-php-entrypoint
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
ENTRYPOINT ["farm3-php-entrypoint"]
|
|
CMD ["apache2-foreground"]
|