Skip to content

Commit 9419c8e

Browse files
committed
Fixed build issue.
1 parent 6d316cc commit 9419c8e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Dockerfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ LABEL maintainer "hi@joserobinson.com"
44

55
RUN export DEBIAN_FRONTEND=noninteractive
66

7-
RUN apt-get update && \
8-
apt-get install -y curl git libreadline-dev libmcrypt-dev && \
9-
apt-get build-dep -y php5-cli
7+
RUN apt-get update \
8+
&& apt-get install -y curl git libreadline-dev libmcrypt-dev \
9+
&& apt-get build-dep -y php5-cli
1010

11-
RUN git clone git://github.com/phpenv/phpenv.git $HOME/.phpenv && \
12-
echo 'export PATH="$HOME/.phpenv/bin:$PATH"' >> ~/.bash_profile && \
13-
echo 'eval "$(phpenv init -)"' >> ~/.bash_profile && \
14-
cd $HOME/.phpenv && \
15-
git reset --hard origin/master && \
16-
source ~/.bash_profile && \
17-
phpenv rehash
11+
RUN git clone git://github.com/phpenv/phpenv.git $HOME/.phpenv \
12+
&& echo 'export PATH="$HOME/.phpenv/bin:$PATH"' >> ~/.bashrc \
13+
&& echo 'eval "$(phpenv init -)"' >> ~/.bashrc \
14+
&& cd $HOME/.phpenv \
15+
&& git reset --hard origin/master \
16+
&& $HOME/.phpenv/bin/phpenv rehash

0 commit comments

Comments
 (0)