forked from yeszao/dnmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
116 lines (112 loc) · 4.16 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
ARG PHP_VERSION
FROM php:${PHP_VERSION}-fpm
ARG PHP_XDEBUG
ARG PHP_SWOOLE
ARG PHP_REDIS
ARG REPLACE_SOURCE_LIST
COPY ./sources.list /etc/apt/sources.list.tmp
RUN if [ "${REPLACE_SOURCE_LIST}" = "true" ]; then \
mv /etc/apt/sources.list.tmp /etc/apt/sources.list; else \
rm -rf /etc/apt/sources.list.tmp; fi
RUN apt update
# Install extensions from source
COPY ./extensions /tmp/extensions
RUN chmod +x /tmp/extensions/install.sh \
&& /tmp/extensions/install.sh \
&& rm -rf /tmp/extensions
# More extensions
# 1. soap requires libxml2-dev.
# 2. xml, xmlrpc, wddx require libxml2-dev and libxslt-dev.
# 3. Line `&& :\` do nothing just for better reading.
RUN apt install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install $mc gd \
&& :\
&& apt install -y libicu-dev \
&& docker-php-ext-install $mc intl \
&& :\
&& apt install -y libbz2-dev \
&& docker-php-ext-install $mc bz2 \
&& :\
&& docker-php-ext-install $mc zip \
&& docker-php-ext-install $mc pcntl \
&& docker-php-ext-install $mc pdo_mysql \
&& docker-php-ext-install $mc mysqli \
&& docker-php-ext-install $mc mbstring \
&& docker-php-ext-install $mc exif
# && docker-php-ext-install $mc bcmath \
# && docker-php-ext-install $mc calendar \
# && docker-php-ext-install $mc sockets \
# && docker-php-ext-install $mc gettext \
# && docker-php-ext-install $mc shmop \
# && docker-php-ext-install $mc sysvmsg \
# && docker-php-ext-install $mc sysvsem \
# && docker-php-ext-install $mc sysvshm \
# && docker-php-ext-install $mc pdo_firebird \
# && docker-php-ext-install $mc pdo_dblib \
# && docker-php-ext-install $mc pdo_oci \
# && docker-php-ext-install $mc pdo_odbc \
# && docker-php-ext-install $mc pdo_pgsql \
# && docker-php-ext-install $mc pgsql \
# && docker-php-ext-install $mc oci8 \
# && docker-php-ext-install $mc odbc \
# && docker-php-ext-install $mc dba \
# && docker-php-ext-install $mc interbase \
# && :\
# && apt install -y libxml2-dev \
# && apt install -y libxslt-dev \
# && docker-php-ext-install $mc soap \
# && docker-php-ext-install $mc xsl \
# && docker-php-ext-install $mc xmlrpc \
# && docker-php-ext-install $mc wddx \
# && :\
# && apt install -y unixodbc-dev \
# && pecl install sqlsrv pdo_sqlsrv \
# && docker-php-ext-enable sqlsrv pdo_sqlsrv
# && :\
# && apt install -y curl \
# && apt install -y libcurl3 \
# && apt install -y libcurl4-openssl-dev \
# && docker-php-ext-install $mc curl \
# && :\
# && apt install -y libreadline-dev \
# && docker-php-ext-install $mc readline \
# && :\
# && apt install -y libsnmp-dev \
# && apt install -y snmp \
# && docker-php-ext-install $mc snmp \
# && :\
# && apt install -y libpspell-dev \
# && apt install -y aspell-en \
# && docker-php-ext-install $mc pspell \
# && :\
# && apt install -y librecode0 \
# && apt install -y librecode-dev \
# && docker-php-ext-install $mc recode \
# && :\
# && apt install -y libtidy-dev \
# && docker-php-ext-install $mc tidy \
# && :\
# && apt install -y libgmp-dev \
# && ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h \
# && docker-php-ext-install $mc gmp \
# && :\
# && apt install -y postgresql-client \
# && apt install -y mysql-client \
# && :\
# && apt install -y libc-client-dev \
# && docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
# && docker-php-ext-install $mc imap \
# && :\
# && apt install -y libldb-dev \
# && apt install -y libldap2-dev \
# && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
# && docker-php-ext-install $mc ldap \
# && :\
# && apt install -y libmagickwand-dev \
# && pecl install imagick-3.4.3 \
# && docker-php-ext-enable imagick \
# && :\
# && apt install -y libmemcached-dev zlib1g-dev \
# && pecl install memcached-2.2.0 \
# && docker-php-ext-enable memcached