Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run after build with docker #18

Closed
ledainghia opened this issue Nov 7, 2023 · 3 comments
Closed

Cannot run after build with docker #18

ledainghia opened this issue Nov 7, 2023 · 3 comments

Comments

@ledainghia
Copy link

Steps to reproduce

BUILD IMAGE WITH DOCKERFILE

What is expected?

Error MODULE_NOT_FOUND

What is actually happening?

I tried deploying them to a server with docker installed. But I try with the docker file which i get direct from Nextjs document. But when running docker, the docker side reports "Error: Cannot find module '/app/server.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',"

Additional data

@Heet-Bhalodiya
Copy link
Member

Hi @ledainghia,

We do not have expertise in Docker and we have never tried it with our template.

We might think about adding a Docker file as a feature in a future update, but we can't promise this. If you need Docker now, you'll have to set it up yourself.

Please let me know if you have any other queries.

Copy link

github-actions bot commented Feb 9, 2024

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.

@github-actions github-actions bot added the stale label Feb 9, 2024
Copy link

This issue has been automatically marked as closed because it has no recent activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants