Merge pull request #2817 from Djuki/master
Configuration to switch between composer version 1 or 2
This commit is contained in:
3 files changed
+7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user