-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (46 loc) · 1.68 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
50
FROM php:7.1.12-apache
# Setup the Xdebug version to install
ENV XDEBUG_VERSION 2.5.5
ENV XDEBUG_SHA256 72108bf2bc514ee7198e10466a0fedcac3df9bbc5bd26ce2ec2dafab990bf1a4
COPY /php/php.ini /usr/local/etc/php/
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libxml2-dev \
apache2-dev \
libssl-dev \
libcurl4-gnutls-dev \
libedit-dev \
librecode-dev \
zlib1g-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure calendar --enable-calendar \
&& docker-php-ext-install calendar \
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-configure readline --with-readline \
&& docker-php-ext-install readline \
&& docker-php-ext-configure recode --with-recode \
&& docker-php-ext-install recode \
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-configure zip --enable-zip \
&& docker-php-ext-install zip
RUN a2enmod rewrite
# Install Xdebug
RUN set -x \
&& curl -SL "http://www.xdebug.org/files/xdebug-$XDEBUG_VERSION.tgz" -o xdebug.tgz \
&& echo $XDEBUG_SHA256 xdebug.tgz | sha256sum -c - \
&& mkdir -p /usr/src/xdebug \
&& tar -xf xdebug.tgz -C /usr/src/xdebug --strip-components=1 \
&& rm xdebug.* \
&& cd /usr/src/xdebug \
&& phpize \
&& ./configure \
&& make -j"$(nproc)" \
&& make install \
&& make clean
COPY extensions-config/* /usr/local/etc/php/conf.d/