Skip to content

Commit e448ff4

Browse files
committed
Fix Path
1 parent a008c90 commit e448ff4

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)