Skip to content

Commit 7d06b4c

Browse files
authored
Merge pull request #11 from kool-dev/fix_path
Fix Path
2 parents a008c90 + e448ff4 commit 7d06b4c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

7.4/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM kooldev/php:7.4
22

33
# 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
56

67
# install dependencies (ast)
78
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \

8.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM kooldev/php:8.0
22

33
# 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
56

67
# install dependencies (ast)
78
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \

template/Dockerfile.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM {{ $from }}
22

33
# 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
56

67
# install dependencies (ast)
78
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \

0 commit comments

Comments
 (0)