File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
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 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
4
+ RUN echo "export PATH=\$ PATH:\/ root\/ .composer\/ vendor\/ bin:\/ phars/" | tee -a /etc/profile
6
5
7
6
# install dependencies (ast)
8
7
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 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
4
+ RUN echo "export PATH=\$ PATH:\/ root\/ .composer\/ vendor\/ bin:\/ phars/" | tee -a /etc/profile
6
5
7
6
# install dependencies (ast)
8
7
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 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
4
+ RUN echo "export PATH=\$PATH:\/root\/.composer\/vendor\/bin:\/phars/" | tee -a /etc/profile
6
5
7
6
# install dependencies (ast)
8
7
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
You can’t perform that action at this time.
0 commit comments