Laravel docker image "Could not open input file: /var/www/html/artisan" Laravel docker image "Could not open input file: /var/www/html/artisan" laravel laravel

Laravel docker image "Could not open input file: /var/www/html/artisan"


Looking at your Dockerfile, you don't have a copy statement which copies the your source code to the container. And in your docker compose you would would be sharing that code using volumes. Hence your code works fine in docker-compose up. But in case of docker run <image> that volume is not shared and hence the error