File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM kooldev/php:7.4
2
2
3
3
# make Composer global vendor/bin available through PATH
4
- RUN sed -i 's/\( ^export PATH=.*\) /\1 :\/ root\/ .composer\/ vendor\/ bin:\/ phars/' /etc/profile
4
+ RUN echo "export PATH=/root/.composer/vendor/bin:\$ PATH" > /etc/profile.d/composer.sh
5
+ RUN echo "export PATH=/phars:\$ PATH" > /etc/profile.d/phars.sh
5
6
6
7
# install dependencies (ast)
7
8
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
Original file line number Diff line number Diff line change 1
1
FROM kooldev/php:8.0
2
2
3
3
# make Composer global vendor/bin available through PATH
4
- RUN sed -i 's/\( ^export PATH=.*\) /\1 :\/ root\/ .composer\/ vendor\/ bin:\/ phars/' /etc/profile
4
+ RUN echo "export PATH=/root/.composer/vendor/bin:\$ PATH" > /etc/profile.d/composer.sh
5
+ RUN echo "export PATH=/phars:\$ PATH" > /etc/profile.d/phars.sh
5
6
6
7
# install dependencies (ast)
7
8
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
Original file line number Diff line number Diff line change 1
1
FROM {{ $from } }
2
2
3
3
# make Composer global vendor/bin available through PATH
4
- RUN sed -i 's/\(^export PATH=.*\)/\1:\/root\/.composer\/vendor\/bin:\/phars/' /etc/profile
4
+ RUN echo "export PATH=/root/.composer/vendor/bin:\$PATH" > /etc/profile.d/composer.sh
5
+ RUN echo "export PATH=/phars:\$PATH" > /etc/profile.d/phars.sh
5
6
6
7
# install dependencies (ast)
7
8
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
You can’t perform that action at this time.
0 commit comments