Fix puppeteer docker container hanging

This commit is contained in:
colinmcneil 2024-12-19 11:19:09 -05:00 • committed by Jim Clark
commit 5865afb07a
No known key found for this signature in database
GPG key ID: 73305B2338AAA7BE
2 changed files with 6 additions and 2 deletions

View file

@ -23,5 +23,4 @@ WORKDIR /project
RUN npm install
CMD ["node", "dist/index.js"]
ENTRYPOINT ["node", "dist/index.js"]

View file

@ -401,3 +401,8 @@ async function runServer() {
}
runServer().catch(console.error);
process.stdin.on("close", () => {
console.error("Puppeteer MCP Server closed");
process.exit(1);
});