Skip to content

Commit 66f08a4

Browse files
committed
fix .bashrc exports and alises
1 parent 07a07ab commit 66f08a4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

workspace/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ RUN apt-get update \
3636
# Install Composer
3737
RUN curl -s http://getcomposer.org/installer | php \
3838
&& mv composer.phar /usr/local/bin/ \
39-
&& alias composer='/usr/local/bin/composer.phar'
39+
&& echo "alias composer='/usr/local/bin/composer.phar'" >> ~/.bashrc
4040

41-
# Install Laravel Installer
41+
# Install the Laravel Installer
4242
RUN composer.phar global require "laravel/installer" \
43-
&& export PATH="$PATH:$HOME/.composer/vendor/bin"
43+
&& echo "export PATH='$PATH:$HOME/.composer/vendor/bin'" >> ~/.bashrc
44+
45+
# Source the bashrc to apply updates
46+
RUN . ~/.bashrc
4447

4548
# Clean up
4649
RUN apt-get autoclean && apt-get clean \

0 commit comments

Comments
 (0)