Add composer self-update 2.2 support

This commit is contained in:
HanhBT
2023-11-10 14:48:49 +07:00
parent b75d8ba0bd
commit de954ca652

View File

@@ -142,7 +142,7 @@ RUN echo "" >> ~/.bashrc && \
ARG COMPOSER_VERSION=2
ENV COMPOSER_VERSION ${COMPOSER_VERSION}
RUN set -eux; \
if [ "$COMPOSER_VERSION" = "1" ] || [ "$COMPOSER_VERSION" = "2" ]; then \
if [ "$COMPOSER_VERSION" = "1" ] || [ "$COMPOSER_VERSION" = "2" ] || [ "$COMPOSER_VERSION" = "2.2" ]; then \
composer self-update --${COMPOSER_VERSION}; \
else \
composer self-update ${COMPOSER_VERSION}; \