Compare commits

..

2 Commits

Author SHA1 Message Date
f2615b9ff2 Merge pull request #194 from Kauhat/fix-composer
Fix user permissions issue when installing Composer in the workspace container
2016-07-29 14:01:48 +03:00
42d551dead Fix user permissions issue when installing Composer in the workspace
container
2016-07-29 09:59:38 +01:00

View File

@ -78,9 +78,14 @@ USER laradock
#####################################
# Add the composer.json
ADD ./composer.json /home/laradock/.composer/composer.json
COPY ./composer.json /home/laradock/.composer/composer.json
# Check if global install need to be runned
# Make sure that ~/.composer belongs to laradock
USER root
RUN chown -R laradock:laradock /home/laradock/.composer
USER laradock
# Check if global install need to be ran
ARG COMPOSER_GLOBAL_INSTALL=true
ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \