We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5ac8d1 commit 42d551dCopy full SHA for 42d551d
1 file changed
workspace/Dockerfile
@@ -78,9 +78,14 @@ USER laradock
78
#####################################
79
80
# Add the composer.json
81
-ADD ./composer.json /home/laradock/.composer/composer.json
+COPY ./composer.json /home/laradock/.composer/composer.json
82
83
-# Check if global install need to be runned
+# Make sure that ~/.composer belongs to laradock
84
+USER root
85
+RUN chown -R laradock:laradock /home/laradock/.composer
86
+USER laradock
87
+
88
+# Check if global install need to be ran
89
ARG COMPOSER_GLOBAL_INSTALL=true
90
ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
91
RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
0 commit comments