Trying to make Puppeteer work in app platform, can’t make it happen without doing for a Dockerfile. So…going for a Dockerfile…everything seems to work, the deployment seems correct…but the URL where’s the app is supposed to be working doesnt.
I see the build logs and the Dockerfile was executed correctly, I see some console.log the my files have; I can even go “Console” section and if I try to run something in the port it throws error because there’s already something running in there…
Any ideas? This is my Dockerfile:
FROM node:16.14 WORKDIR /app ADD . /app RUN yarn install && yarn build EXPOSE 8080 CMD PORT=8080 yarn start
[2022-04-18 14:36:24] yarn run v1.22.18 [2022-04-18 14:36:24] $ node index [2022-04-18 14:36:26] run at 8080 // this is a console.log in index.js
Searched everywhere and there’s not a single example of how to do this. The only example with Dockerfile is for Go.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I came across this question in 2023. With the App Platform, you can not install packages directly.
The way to achieve this is by using a Dockerfile and specifying all of the packages and dependencies that you need in there and deploying your app that way:
I know this is an old thread, but if you happen to keep the error logs, you can share them here so we can have a look.
Hope that this helps!