21 lines
799 B
Docker
21 lines
799 B
Docker
FROM php:5.6-fpm
|
|
# Update stretch repositories
|
|
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \
|
|
-e 's|security.debian.org|archive.debian.org/|g' \
|
|
-e '/stretch-updates/d' /etc/apt/sources.list && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
libfreetype6-dev \
|
|
libjpeg62-turbo-dev \
|
|
libpng-dev \
|
|
libzip-dev \
|
|
zlib1g-dev \
|
|
vim \
|
|
libicu-dev && \
|
|
docker-php-ext-configure intl && \
|
|
docker-php-ext-install intl && \
|
|
docker-php-ext-install -j$(nproc) gd && \
|
|
apt-get install --no-install-recommends --assume-yes --quiet ca-certificates curl git && \
|
|
docker-php-ext-install mysqli zip pdo_mysql bcmath opcache && \
|
|
mkdir /var/www/sessions && \
|
|
chmod 777 /var/www/sessions |