Configuration to switch between composer version 1 or 2

This commit is contained in:
Ivan Djurdjevac
2021-01-16 08:34:05 +01:00
parent 4cf39da90d
commit 4bb1fe281d
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