$ npm run start
> app@1.2.3 start /home/app/ui/web
> nuxt start
FATAL No build files found in /home/app/ui/web/.nuxt/dist/server.
Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
Error happens when starting a Nuxt.js app in a Docker image that was built multi-stage:
npm ci && npm run build
inside the build-stage image- copy the built app
.nuxt
, and alsopackage.json
andnode_modules
into the run-stage image
Some details regarding the environment.
Nuxt.js application mode is 'spa'. The missing files are really present inside the final image, no volumes/mounts have been used. OS user names are different between build-stage and run-stage images, however (hopefully) that should not be the case.
Nuxt.js 2.12.2, Node.js 14.16.0.