|
|
@ -122,6 +122,15 @@ 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 |
|
|
|
|
|
|
|
# Update composer |
|
|
|
ARG COMPOSER_VERSION=2 |
|
|
|
ENV COMPOSER_VERSION ${COMPOSER_VERSION} |
|
|
|
RUN composer self-update --${COMPOSER_VERSION} |
|
|
|
|
|
|
|
USER laradock |
|
|
|
|
|
|
|
# Check if global install need to be ran |
|
|
|