Configuration to switch between composer version 1 or 2

This commit is contained in:
Ivan Djurdjevac committed 2021-01-16 08:34:05 +01:00
1 parent 4cf39da90d
commit 4bb1fe281d
3 files changed
+7

No files matched your search

+5
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