Merge pull request #2982 from aa-ahmed-aa/custom_composer_version
give laradock the ability to install custom composer version
This commit is contained in:
commit
3d57064466
@ -147,7 +147,12 @@ RUN echo "" >> ~/.bashrc && \
|
|||||||
# Update composer
|
# Update composer
|
||||||
ARG COMPOSER_VERSION=2
|
ARG COMPOSER_VERSION=2
|
||||||
ENV COMPOSER_VERSION ${COMPOSER_VERSION}
|
ENV COMPOSER_VERSION ${COMPOSER_VERSION}
|
||||||
RUN composer self-update --${COMPOSER_VERSION}
|
RUN set -eux; \
|
||||||
|
if [ "$COMPOSER_VERSION" = "1" ] || [ "$COMPOSER_VERSION" = "2" ]; then \
|
||||||
|
composer self-update --${COMPOSER_VERSION}; \
|
||||||
|
else \
|
||||||
|
composer self-update ${COMPOSER_VERSION}; \
|
||||||
|
fi
|
||||||
|
|
||||||
USER laradock
|
USER laradock
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user