Merge pull request #2817 from Djuki/master

Configuration to switch between composer version 1 or 2
This commit is contained in:
Shao Yu-Lung (Allen)
2021-02-22 15:18:26 +08:00
committed by GitHub
3 changed files with 7 additions and 0 deletions

View File

@ -147,6 +147,11 @@ RUN chown -R laradock:laradock /home/laradock/.composer
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