Issue with Next.js Build #21903
beldenschroeder
started this conversation in
General
Replies: 1 comment
-
Nevermind. I accidentally left out the "." in front of "next" in my
in my Dockerfile. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using @nx/next and run
nx build [my-app]
to build the/dist/apps/[my-app]/.next
and/dist/apps/[my-app]/public
directories locally.My Dockerfile then copies these folders over to my container environment:
Then, at the end of the Dockerfile, I run
CMD ["dumb-init", "npm", "start"]
to start the server.
However, when this runs, I get the following error:
I'm not sure why my build can't be found in
/usr/src/app/.next
I seein my local directory after running the
nx build [my-project
command. Doesn't that commend essentially runnext build'
as suggested to do in the error message mentioned above?Beta Was this translation helpful? Give feedback.
All reactions