Skip to content

Commit 14c674f

Browse files
committed
add comments
1 parent 3f04664 commit 14c674f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

phpbrew/18.04-minimum/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN apt-get install -y --no-install-recommends \
2121
libcurl4 libcurl4-openssl-dev
2222

2323
SHELL ["/bin/bash", "-c"]
24+
2425
ARG PHP_VERSION=7.2
2526
ARG PHP_DIST_NAME=$PHP_VERSION
2627
ARG PHP_MIRROR=http://tw2.php.net
@@ -29,11 +30,16 @@ ARG DOWNLOADER=wget
2930
ENV PHPBREW_ROOT /root/.phpbrew
3031
ENV PHPBREW_HOME /root/.phpbrew
3132
ENV PHPBREW_SET_PROMPT 1
33+
34+
# init and setup phpbrew
3235
RUN phpbrew init \
33-
&& echo 'source $HOME/.phpbrew/bashrc' >> /root/.bashrc \
34-
&& source ~/.phpbrew/bashrc \
36+
&& echo 'source $HOME/.phpbrew/bashrc' >> /root/.bashrc
37+
38+
# predownload the distribution file
39+
RUN source ~/.phpbrew/bashrc \
3540
&& phpbrew download --mirror $PHP_MIRROR --downloader $DOWNLOADER $PHP_VERSION
3641

42+
# extract and install php
3743
RUN source ~/.phpbrew/bashrc \
3844
&& phpbrew --debug install --mirror $$PHP_MIRROR --downloader $DOWNLOADER --stdout \
3945
$PHP_VERSION as $PHP_DIST_NAME \

0 commit comments

Comments
 (0)