-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (33 loc) · 2.45 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
FROM ubuntu:xenial
MAINTAINER Fusonic "[email protected]"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y php7.0-cli php7.0-curl mysql-server git curl bzip2 \
libxslt1.1 libmcrypt4 libcurl3 libenchant1c2a libpng16-16 libgmp10 libc-client2007e libkrb5-3 \
libfbclient2 firebird2.5-common libldap-2.4-2 gcc make libxml2-dev libssl-dev libbz2-dev \
libmcrypt-dev libreadline6-dev libxslt1-dev libcurl4-openssl-dev libenchant-dev libpng16-dev \
libgmp3-dev libc-client2007e-dev libkrb5-dev firebird-dev libldap2-dev
RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h && \
ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a && \
curl -L https://getcomposer.org/composer.phar > /usr/bin/composer && chmod +x /usr/bin/composer && \
curl -L https://github.com/phpbrew/phpbrew/raw/master/phpbrew>/usr/bin/phpbrew && chmod +x /usr/bin/phpbrew
RUN phpbrew init && \
phpbrew install -j $(nproc) --name=5.5 5.5 +default+mysql+calendar+ftp+exif+soap+session+opcache+imap+xmlrpc+zlib+curl+gd+intl+openssl+xml_all+gettext+iconv && \
phpbrew install -j $(nproc) --name=5.6 5.6 +default+mysql+calendar+ftp+exif+soap+session+opcache+imap+xmlrpc+zlib+curl+gd+intl+openssl+xml_all+gettext+iconv && \
phpbrew install -j $(nproc) --name=7.0 7.0 +default+mysql+calendar+ftp+exif+soap+session+opcache+imap+xmlrpc+zlib+curl+gd+intl+openssl+xml_all+gettext+iconv && \
phpbrew install -j $(nproc) --name=7.1 7.1 +default+mysql+calendar+ftp+exif+soap+session+opcache+imap+xmlrpc+zlib+curl+gd+intl+openssl+xml_all+gettext+iconv && \
phpbrew clean -a 5.5 && \
phpbrew clean -a 5.6 && \
phpbrew clean -a 7.0 && \
phpbrew clean -a 7.1 && \
echo "mysqli.default_socket=/var/run/mysqld/mysqld.sock" >> /root/.phpbrew/php/5.5/etc/php.ini && \
echo "mysqli.default_socket=/var/run/mysqld/mysqld.sock" >> /root/.phpbrew/php/5.6/etc/php.ini && \
echo "mysqli.default_socket=/var/run/mysqld/mysqld.sock" >> /root/.phpbrew/php/7.0/etc/php.ini && \
echo "mysqli.default_socket=/var/run/mysqld/mysqld.sock" >> /root/.phpbrew/php/7.1/etc/php.ini
RUN apt-get purge -y gcc make php7.0-cli php7.0-curl && \
apt-get autoremove -y && \
rm /usr/bin/phpbrew && \
ln -s /root/.phpbrew/php/7.1/bin/php /usr/bin/php && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /usr/share/man
ADD files /