From 6c1bd1adfbcfcd7b2abbbaffe2727ba175377982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Tue, 5 Dec 2017 22:45:32 -0600 Subject: [PATCH] add Dockerfile to PHP 7.2 version --- Dockerfile-72 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Dockerfile-72 diff --git a/Dockerfile-72 b/Dockerfile-72 new file mode 100644 index 0000000..b224e03 --- /dev/null +++ b/Dockerfile-72 @@ -0,0 +1,45 @@ +# +#-------------------------------------------------------------------------- +# Image Setup +#-------------------------------------------------------------------------- +# + +FROM php:7.2-fpm + +MAINTAINER Mahmoud Zalt + +# +#-------------------------------------------------------------------------- +# Software's Installation +#-------------------------------------------------------------------------- +# +# Installing tools and PHP extentions using "apt", "docker-php", "pecl", +# + +# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev", +# "libpng-dev", "libfreetype6-dev", "libssl-dev", "libmcrypt-dev", +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + curl \ + libmemcached-dev \ + libz-dev \ + libpq-dev \ + libjpeg-dev \ + libpng-dev \ + libfreetype6-dev \ + libssl-dev \ + libmcrypt-dev \ + && rm -rf /var/lib/apt/lists/* + + + + # Install the PHP pdo_mysql extention + RUN docker-php-ext-install pdo_mysql \ + # Install the PHP pdo_pgsql extention + && docker-php-ext-install pdo_pgsql \ + # Install the PHP gd library + && docker-php-ext-configure gd \ + --enable-gd-native-ttf \ + --with-jpeg-dir=/usr/lib \ + --with-freetype-dir=/usr/include/freetype2 && \ + docker-php-ext-install gd