Skip to content

Commit b79f310

Browse files
authored
Merge pull request #7 from AliveCorpse/feature/add_php_7.1
Add dockerfile with php 7.1
2 parents bea3c99 + b0bef8d commit b79f310

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Dockerfile-71

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
#--------------------------------------------------------------------------
3+
# Image Setup
4+
#--------------------------------------------------------------------------
5+
#
6+
7+
FROM php:7.1-fpm
8+
9+
MAINTAINER Mahmoud Zalt <[email protected]>
10+
11+
#
12+
#--------------------------------------------------------------------------
13+
# Software's Installation
14+
#--------------------------------------------------------------------------
15+
#
16+
# Installing tools and PHP extentions using "apt", "docker-php", "pecl",
17+
#
18+
19+
# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev",
20+
# "libpng12-dev", "libfreetype6-dev", "libssl-dev", "libmcrypt-dev",
21+
RUN apt-get update && \
22+
apt-get install -y --no-install-recommends \
23+
curl \
24+
libmemcached-dev \
25+
libz-dev \
26+
libpq-dev \
27+
libjpeg-dev \
28+
libpng12-dev \
29+
libfreetype6-dev \
30+
libssl-dev \
31+
libmcrypt-dev
32+
33+
# Install the PHP mcrypt extention
34+
RUN docker-php-ext-install mcrypt
35+
36+
# Install the PHP pdo_mysql extention
37+
RUN docker-php-ext-install pdo_mysql
38+
39+
# Install the PHP pdo_pgsql extention
40+
RUN docker-php-ext-install pdo_pgsql
41+
42+
#####################################
43+
# gd:
44+
#####################################
45+
46+
# Install the PHP gd library
47+
RUN docker-php-ext-configure gd \
48+
--enable-gd-native-ttf \
49+
--with-jpeg-dir=/usr/lib \
50+
--with-freetype-dir=/usr/include/freetype2 && \
51+
docker-php-ext-install gd

0 commit comments

Comments
 (0)