29 lines
842 B
Docker
29 lines
842 B
Docker
FROM php:7.1-apache
|
|
## Install OS dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
libfreetype6-dev \
|
|
libjpeg62-turbo-dev \
|
|
libpng-dev \
|
|
libzip-dev \
|
|
zlib1g-dev \
|
|
vim \
|
|
libicu-dev \
|
|
fcgiwrap \
|
|
mariadb-client \
|
|
ca-certificates \
|
|
curl \
|
|
git && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
## Enable and configure php modules
|
|
RUN docker-php-ext-configure intl && \
|
|
docker-php-ext-install intl && \
|
|
docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include && \
|
|
docker-php-ext-install -j$(nproc) gd && \
|
|
docker-php-ext-install mysqli zip pdo_mysql bcmath && \
|
|
docker-php-ext-install opcache
|
|
|
|
RUN mkdir /var/www/sessions && \
|
|
chmod 777 /var/www/sessions
|
|
|
|
RUN a2enmod rewrite |