File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ ENV PHPBREW_SET_PROMPT 1
4444RUN phpbrew init \
4545 && echo 'source $HOME/.phpbrew/bashrc' >> /root/.bashrc \
4646 && source ~/.phpbrew/bashrc \
47- && phpbrew --debug install $PHP_VERSION as $PHP_VERSION \
47+ && phpbrew --debug install --stdout $PHP_VERSION as $PHP_VERSION \
4848 +default +bcmath +bz2 +calendar +cli +ctype +dom +fileinfo +filter +json \
4949 +mbregex +mbstring +mhash +pcntl +pcre +phar +posix +readline +sockets \
5050 +tokenizer +xml +curl +zip +openssl=yes +fpm \
Original file line number Diff line number Diff line change 1+ ARG PHPBREW_BASE_IMAGE
2+ FROM ${PHPBREW_BASE_IMAGE}
3+
4+ # install extension build dependencies for php
5+ RUN apt-get install -y --no-install-recommends \
6+ # pcre extension
7+ libpcre3-dev \
8+ # for compression
9+ libbz2-dev \
10+ # zip extension
11+ libzip4 libzip-dev \
12+ # readline extension
13+ libreadline7 libreadline-dev \
14+ libedit-dev libedit2 \
15+ # xml related dependencies
16+ libxml2 libxml2-dev \
17+ libxslt1-dev libxslt1.1 \
18+ # openssl dependencies
19+ libssl-dev openssl \
20+ # curl extension dependencies
21+ libcurl4 libcurl4-openssl-dev
22+
23+ SHELL ["/bin/bash" , "-c" ]
24+ ARG PHP_VERSION=7.2
25+ ARG PHP_DIST_NAME=$PHP_VERSION
26+ ARG PHP_MIRROR=http://tw2.php.net
27+ ARG DOWNLOADER=wget
28+
29+ ENV PHPBREW_ROOT /root/.phpbrew
30+ ENV PHPBREW_HOME /root/.phpbrew
31+ ENV PHPBREW_SET_PROMPT 1
32+ RUN phpbrew init \
33+ && echo 'source $HOME/.phpbrew/bashrc' >> /root/.bashrc \
34+ && source ~/.phpbrew/bashrc \
35+ && phpbrew download --mirror $PHP_MIRROR --downloader $DOWNLOADER $PHP_VERSION
36+
37+ RUN source ~/.phpbrew/bashrc \
38+ && phpbrew --debug install --mirror $$PHP_MIRROR --downloader $DOWNLOADER --stdout \
39+ $PHP_VERSION as $PHP_DIST_NAME \
40+ +cli +phar +bz2 +xml +filter +mbregex +mbstring +posix +pcntl \
41+ && phpbrew use $PHP_DIST_NAME \
42+ && php -v
43+
You can’t perform that action at this time.
0 commit comments