Skip to content

Commit 1fd0c7e

Browse files
Add php-7, php-7 from phpbrew
1 parent e0df139 commit 1fd0c7e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,16 @@ RUN sudo wget --quiet https://github.com/ergebnis/composer-normalize/releases/do
152152
RUN sudo wget --quiet https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar && \
153153
sudo chmod +x phpbrew.phar && \
154154
sudo mv phpbrew.phar /usr/bin/phpbrew && \
155-
echo -e "[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc" >> ~/.bashrc && \
155+
echo -e "export PHPBREW_SET_PROMPT=0" >> ~/.bashrc && \
156+
echo -e "[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc" >> ~/.zshrc && \
157+
echo -e "export PHPBREW_SET_PROMPT=0" >> ~/.zshrc && \
156158
echo -e "[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc" >> ~/.zshrc
157159

158160
# Install php8 with phpbrew
159161
RUN sudo mkdir -p /opt/phpbrew && sudo chmod -R 777 /opt/phpbrew && sudo chown gitpod /opt/phpbrew && \
160162
phpbrew init --root=/opt/phpbrew && \
161-
phpbrew install php-8.0.13 as php-8 +default +mbstring +gd
162-
163-
RUN source ~/.phpbrew/bashrc && \
164-
phpbrew switch php-8 && \
165-
phpbrew ext install gd
163+
phpbrew install php-8.0.13 as php-8 +default +gd && \
164+
phpbrew install php-7.4.26 as php-7 +default +gd
166165

167166
# Install wp-cli
168167
RUN sudo wget --quiet https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \

0 commit comments

Comments
 (0)