-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (44 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM php:7.1-fpm
MAINTAINER René Penner <[email protected]>
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --enable-intl --enable-opcache
RUN apt-get update && \
apt-get install -y \
libpng12-dev \
libjpeg-dev \
libmcrypt-dev \
libxml2-dev \
freetype* \
git \
zlib1g-dev \
libicu-dev \
g++ \
&& \
rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure \
gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& \
\
docker-php-ext-install \
gd \
mbstring \
mcrypt \
mysqli \
opcache \
pdo \
pdo_mysql \
soap \
zip \
intl
# Install xdebug
RUN cd /tmp/ && git clone https://github.com/xdebug/xdebug.git \
&& cd xdebug && phpize && ./configure --enable-xdebug && make \
&& mkdir /usr/lib/php7/ && mv modules/xdebug.so /usr/lib/php7/xdebug.so \
&& touch /usr/local/etc/php/ext-xdebug.ini \
&& rm -r /tmp/xdebug \
&& apt-get purge -y --auto-remove
# Install redis
ENV PHPREDIS_VERSION 3.0.0
RUN mkdir -p /usr/src/php/ext/redis \
&& curl -L https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1 \
&& echo 'redis' >> /usr/src/php-available-exts \
&& docker-php-ext-install redis