-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (34 loc) · 1.17 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
FROM php:5.6
MAINTAINER Bartosz Grzybowski <melkorm@gmail.com>
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 \
&& 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 imap \
&& pecl install imagick xdebug \
&& pecl install ssh2 \
&& docker-php-ext-enable imagick xdebug ssh2 \
&& docker-php-ext-install -j$(nproc) iconv mcrypt zip intl xmlrpc bcmath soap mbstring \
&& 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"]