Answer the question
In order to leave comments, you need to log in
After build (npm build) doesn't run npm start in Docker container?
I set up deployment of a nuxt application using Docker according to this article .
After the call
docker run -p 80:80 --rm --name app-container app-imagethrows an error:
Error: No build files found in /usr/src/nuxt-app/.nuxt/dist/server. ││ Use either `nuxt build` or `builder.build()` or start nuxt in ││ development mode.
Answer the question
In order to leave comments, you need to log in
The article is old and uses node 11 version, which is no longer supported by nuxt.js. Use version 16.5.0 by changing the first line of the Dockerfile to "FROM node:16.5.0-alpine".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question