Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
FROM php:7.1.25-fpm-jessie
FROM php:7.4.6-fpm-buster

LABEL maintainer='Benjamin Vison <benjamin@syneteksolutions.com>'

# Install dependencies
RUN apt-get update && apt-get install -y \
# Install dependencies
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
gcc \
make \
autoconf \
libc-dev \
pkg-config \
libmcrypt-dev \
libpng-dev \
zlib1g-dev \
Expand All @@ -14,9 +19,14 @@ LABEL maintainer='Benjamin Vison <benjamin@syneteksolutions.com>'
g++ \
wkhtmltopdf \
xvfb \
&& docker-php-ext-install -j$(nproc) bcmath iconv mcrypt mbstring pdo pdo_mysql mysqli opcache zip xml xmlrpc xmlwriter opcache exif \
libonig-dev \
libzip-dev \
&& pecl config-set php_ini "${PHP_INI_DIR}/php.ini" \
&& pecl install mcrypt-1.0.3 \
&& docker-php-ext-enable mcrypt \
&& docker-php-ext-install -j$(nproc) bcmath iconv mbstring pdo pdo_mysql mysqli opcache zip xml xmlrpc xmlwriter opcache exif \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd intl \
&& apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/

Expand Down