If you get this problem `docker123-server-1 | Error: Cannot find module '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/src/index.js'` You can fix this in /_Dockerfile_ and write the next: `WORKDIR /` . . . `# Run the application.` `CMD node /src/index.js` <-- varies depending on your folders.
Activity
yangjiang3973 commentedon Dec 20, 2023
I mounted my local 'src' folder to overwrite
volumes:
- ./src:/usr/src/app
- /usr/src/app/node_modules