-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Bug image with-puppeter #18
Comments
Hi @OscarSotoSanchez 👋 I will have a look but normally the workdir is already set in the Dockerfile. Can you describe your docker container launch command? Thanks! 👍 |
For you information @OscarSotoSanchez, I've set the |
@all-contributors please add @OscarSotoSanchez for bug |
I've put up a pull request to add @OscarSotoSanchez! 🎉 |
Hi, you have a bug in the docker image with-puppeter, if you don't add a path "/usr/src/app" in the command "npm install", you will recived a error message in the execution.
module.js:549
throw err;
^
Error: Cannot find module 'puppeteer'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/src/app/pdf.js:1:81)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Then, if you modify the command for "RUN npm install /usr/src/app" you will resolved the problem. Best regards.
The text was updated successfully, but these errors were encountered: