-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (37 loc) · 1.04 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
FROM debian:jessie
MAINTAINER Anders Steinlein <anders@e5r.no>
# Install build requirements
# ...then compile PHP & the pthreads extension
# ...then do some cleanup
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
autoconf \
build-essential \
libssl-dev \
libxml2-dev \
wget \
&& wget -qO php-5.6.10.tar.bz2 http://us1.php.net/get/php-5.6.10.tar.bz2/from/this/mirror \
&& tar xjf php-5.6.10.tar.bz2 \
&& cd php-5.6.10 \
&& ./configure \
--disable-cgi \
--enable-mbstring \
--enable-maintainer-zts \
--enable-zip \
--with-libdir=/lib/x86_64-linux-gnu \
--with-openssl \
&& make \
&& make install \
&& cp php.ini-production /usr/local/lib/php.ini \
&& cd .. \
&& pecl config-set php_ini /usr/local/lib/php.ini \
&& pear config-set php_ini /usr/local/lib/php.ini \
&& pecl install pthreads \
&& rm php-5.6.10.tar.bz2 \
&& rm -rf php-5.6.10 \
&& apt-get purge -y autoconf build-essential wget .+-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENTRYPOINT ["php"]
CMD ["--help"]