Skip to content

Commit

Permalink
Add laravel installer for root user (laradock#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Mezin authored and bestlong committed Jun 19, 2019
1 parent d1015e5 commit ca80dd1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ COPY ./auth.json /home/laradock/.composer/auth.json
# Make sure that ~/.composer belongs to laradock
RUN chown -R laradock:laradock /home/laradock/.composer

# Export composer vendor path
RUN echo "" >> ~/.bashrc && \
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bashrc

USER laradock

# Check if global install need to be ran
Expand Down Expand Up @@ -715,6 +719,15 @@ RUN if [ ${INSTALL_LARAVEL_ENVOY} = true ]; then \

USER laradock

ARG INSTALL_LARAVEL_INSTALLER=false

RUN if [ ${INSTALL_LARAVEL_INSTALLER} = true ]; then \
# Install the Laravel Installer
composer global require "laravel/installer" \
;fi

USER root

ARG COMPOSER_REPO_PACKAGIST
ENV COMPOSER_REPO_PACKAGIST ${COMPOSER_REPO_PACKAGIST}

Expand Down

0 comments on commit ca80dd1

Please sign in to comment.