fix .bashrc exports and alises

This commit is contained in:
Mahmoud Zalt 2016-05-18 08:40:08 +03:00
parent 07a07ab3ac
commit 66f08a4f60
1 changed files with 6 additions and 3 deletions

View File

@ -36,11 +36,14 @@ RUN apt-get update \
# Install Composer # Install Composer
RUN curl -s http://getcomposer.org/installer | php \ RUN curl -s http://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/ \ && mv composer.phar /usr/local/bin/ \
&& alias composer='/usr/local/bin/composer.phar' && echo "alias composer='/usr/local/bin/composer.phar'" >> ~/.bashrc
# Install Laravel Installer # Install the Laravel Installer
RUN composer.phar global require "laravel/installer" \ RUN composer.phar global require "laravel/installer" \
&& export PATH="$PATH:$HOME/.composer/vendor/bin" && echo "export PATH='$PATH:$HOME/.composer/vendor/bin'" >> ~/.bashrc
# Source the bashrc to apply updates
RUN . ~/.bashrc
# Clean up # Clean up
RUN apt-get autoclean && apt-get clean \ RUN apt-get autoclean && apt-get clean \