Fix puppeteer docker container hanging

This commit is contained in:
colinmcneil
2024-12-19 11:19:09 -05:00
committed by Jim Clark
parent c64f8de15f
commit 5865afb07a
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);
});