-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (35 loc) · 1.25 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
FROM php:5.5
MAINTAINER Bartosz Grzybowski <[email protected]>
RUN apt-get update \
&& apt-get -y install git --no-install-recommends \
&& apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
zlib1g-dev \
libxml2-dev \
libicu-dev \
php5-imap \
libssh2-php \
libssh2-1 \
libssh2-1-dev \
php5-ssh2 \
php5-pecl-http \
libmagickwand-dev \
openssl \
libc-client-dev \
libkrb5-dev \
ssh \
&& pecl install imagick xdebug memcache \
&& pecl install ssh2 channel://pecl.php.net/ssh2-0.11.3 \
&& docker-php-ext-enable imagick memcache xdebug ssh2 \
&& docker-php-ext-install -j$(nproc) iconv mcrypt zip intl xmlrpc bcmath soap mbstring \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install imap \
&& rm -r /var/lib/apt/lists/* \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& service ssh start
CMD ["php", "-a"]