-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from AliveCorpse/feature/add_php_7.1
Add dockerfile with php 7.1
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# | ||
#-------------------------------------------------------------------------- | ||
# Image Setup | ||
#-------------------------------------------------------------------------- | ||
# | ||
|
||
FROM php:7.1-fpm | ||
|
||
MAINTAINER Mahmoud Zalt <[email protected]> | ||
|
||
# | ||
#-------------------------------------------------------------------------- | ||
# Software's Installation | ||
#-------------------------------------------------------------------------- | ||
# | ||
# Installing tools and PHP extentions using "apt", "docker-php", "pecl", | ||
# | ||
|
||
# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev", | ||
# "libpng12-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 \ | ||
libpng12-dev \ | ||
libfreetype6-dev \ | ||
libssl-dev \ | ||
libmcrypt-dev | ||
|
||
# Install the PHP mcrypt extention | ||
RUN docker-php-ext-install mcrypt | ||
|
||
# Install the PHP pdo_mysql extention | ||
RUN docker-php-ext-install pdo_mysql | ||
|
||
# Install the PHP pdo_pgsql extention | ||
RUN docker-php-ext-install pdo_pgsql | ||
|
||
##################################### | ||
# gd: | ||
##################################### | ||
|
||
# Install the PHP gd library | ||
RUN 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 |