Skip to content

Commit

Permalink
Merge pull request laradock#2982 from aa-ahmed-aa/custom_composer_ver…
Browse files Browse the repository at this point in the history
…sion

give laradock the ability to install custom composer version
  • Loading branch information
bestlong authored Jun 4, 2021
2 parents 9618f06 + da1124a commit 3d57064
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ RUN echo "" >> ~/.bashrc && \
# Update composer
ARG COMPOSER_VERSION=2
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

Expand Down

0 comments on commit 3d57064

Please sign in to comment.