-
Notifications
You must be signed in to change notification settings - Fork 72
/
Dockerfile
67 lines (65 loc) · 1.91 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM php:7.3.6-fpm
LABEL maintainer="Vincent Letourneau <vincent@nanoninja.com>"
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y \
g++ \
libbz2-dev \
libc-client-dev \
libcurl4-gnutls-dev \
libedit-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libkrb5-dev \
libldap2-dev \
libmagickwand-dev \
libmcrypt-dev \
libmemcached-dev \
libpq-dev \
libsqlite3-dev \
libssl-dev \
libreadline-dev \
libxslt1-dev \
libzip-dev \
memcached \
wget \
unzip \
zlib1g-dev \
&& docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install -j$(nproc) imap \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j$(nproc) intl \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install ldap \
&& docker-php-ext-install -j$(nproc) \
bcmath \
bz2 \
calendar \
exif \
gettext \
mysqli \
opcache \
pdo_mysql \
pdo_pgsql \
pgsql \
soap \
sockets \
xmlrpc \
xsl \
&& docker-php-ext-configure zip --with-libzip \
&& docker-php-ext-install zip \
&& pecl install xdebug && docker-php-ext-enable xdebug \
&& pecl install memcached && docker-php-ext-enable memcached \
&& pecl install mongodb && docker-php-ext-enable mongodb \
&& pecl install redis && docker-php-ext-enable redis \
&& yes '' | pecl install imagick && docker-php-ext-enable imagick \
&& docker-php-source delete \
&& apt-get remove -y g++ wget \
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* /var/tmp/*