npm install and run dev for laravel / vue on Docker container start npm install and run dev for laravel / vue on Docker container start laravel laravel

npm install and run dev for laravel / vue on Docker container start


Try changing your compose command statement to something as below -

command: bash -c "npm install && npm run dev"

PS - Tested with a sample package.json, it works when we use bash -c "" & not sh -c ""(default compose command run), not really sure about the exact reason though. Hope it can be of some help to you.