use composert < 2

This commit is contained in:
Sebastian Hugentobler 2020-07-26 12:38:49 +02:00
parent 77122e6392
commit 9fcfbef80b

View File

@ -31,8 +31,8 @@ RUN mkdir -p /usr/share/webapps/cops
RUN wget -qO- https://github.com/seblucas/cops/archive/$VERSION.tar.gz | tar xz -C /usr/share/webapps/cops --strip 1
WORKDIR /usr/share/webapps/cops
RUN wget https://getcomposer.org/composer.phar
RUN php composer.phar global require "fxp/composer-asset-plugin:~1.1"
RUN wget https://getcomposer.org/download/1.9.0/composer.phar
RUN php composer.phar --no-plugins global require "fxp/composer-asset-plugin:~1.1"
RUN php composer.phar install --no-dev --optimize-autoloader
RUN chown -R nginx:nginx /usr/share/webapps/cops