Creating a personalized app When I entered the docker container and ran composer require laravel/laravel
, I got the following message:
[InvalidArgumentException]
Could not find package laravel/laravel with stability stable.
By the way, it works well from the local. Why isn't it! !!
Removed the following description of installing composer from Dockerfile
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN composer config -g repos.packagist composer https://packagist.jp
Install composer using a multi-stage build
COPY --from=composer:2.0.8 /usr/bin/composer /usr/bin/composer
When you're done, build docker image and you're done
Recommended Posts