Skip to content

Commit

Permalink
Use composer installer instead of docker image copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mRoca committed Apr 15, 2020
1 parent e402bbf commit 96b8d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/php-flex/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ RUN set -eux; \
\
apk del .build-deps

COPY --from=composer:1.10 /usr/bin/composer /usr/bin/composer

RUN mkdir /.composer \
RUN curl https://getcomposer.org/composer-stable.phar -o /usr/bin/composer \
&& chmod +x /usr/bin/composer \
&& mkdir /.composer \
&& chown -R www-data:www-data /.composer \
&& su-exec www-data composer global require "hirak/prestissimo" "jderusse/composer-warmup" --prefer-dist --no-progress --no-suggest --classmap-authoritative \
&& su-exec www-data composer clear-cache -n
Expand Down

0 comments on commit 96b8d0f

Please sign in to comment.