Fix puppeteer docker container hanging
This commit is contained in:
parent
c64f8de15f
commit
5865afb07a
2 changed files with 6 additions and 2 deletions
|
|
@ -23,5 +23,4 @@ WORKDIR /project
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
CMD ["node", "dist/index.js"]
|
ENTRYPOINT ["node", "dist/index.js"]
|
||||||
|
|
||||||
|
|
@ -401,3 +401,8 @@ async function runServer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
runServer().catch(console.error);
|
runServer().catch(console.error);
|
||||||
|
|
||||||
|
process.stdin.on("close", () => {
|
||||||
|
console.error("Puppeteer MCP Server closed");
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue