Merge pull request #198 from computerfr33k/master

minimize user switching in workspace build.
This commit is contained in:
Mahmoud Zalt 2016-07-29 18:24:03 +03:00 committed by GitHub
commit 537f2c5033

View File

@ -70,9 +70,6 @@ ARG PGID=1000
RUN groupadd -g $PGID laradock && \
useradd -u $PUID -g laradock -m laradock
# Now switch to our laradock user for the rest of user setup
USER laradock
#####################################
# Composer:
#####################################
@ -81,7 +78,6 @@ USER laradock
COPY ./composer.json /home/laradock/.composer/composer.json
# Make sure that ~/.composer belongs to laradock
USER root
RUN chown -R laradock:laradock /home/laradock/.composer
USER laradock