|
|
|
@ -53,7 +53,7 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
|
# so when we execute CLI commands, all the host file's ownership remains intact
|
|
|
|
|
# otherwise command from inside container will create root-owned files and directories
|
|
|
|
|
ARG uid
|
|
|
|
|
RUN useradd -G www-data,root -u 0 -d /home/devuser devuser
|
|
|
|
|
RUN useradd -G www-data,root -u 1 -d /home/devuser devuser
|
|
|
|
|
RUN mkdir -p /home/devuser/.composer && \
|
|
|
|
|
chown -R devuser:devuser /home/devuser && \
|
|
|
|
|
chown -R devuser /home/devuser/.composer/
|
|
|
|
|