Answer the question
In order to leave comments, you need to log in
Why won't composer install run?
My dockerfile
FROM php:7.2.2-fpm
RUN apt-get update && \
apt-get install -y --no-install-recommends git zip
RUN apt -yqq update
RUN apt -yqq install nginx iputils-ping
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR /var/www/html
RUN composer install
EXPOSE 9000
CMD ["php-fpm"]
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer could not find a composer.json file in /var/www/html
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question