chore: roll 1.59.0-alpha-1774903871000 (#1497)

Fixes https://github.com/microsoft/playwright-mcp/issues/1496
This commit is contained in:
Yury Semikhatsky
2026-03-30 15:56:05 -07:00
committed by GitHub
parent 9521308275
commit 3e8fc820a6
8 changed files with 117 additions and 79 deletions

View File

@@ -53,7 +53,6 @@ FROM base
ARG PLAYWRIGHT_BROWSERS_PATH
ARG USERNAME=node
ENV NODE_ENV=production
ENV PLAYWRIGHT_MCP_OUTPUT_DIR=/tmp/playwright-output
# Set the correct ownership for the runtime user on production `node_modules`
RUN chown -R ${USERNAME}:${USERNAME} node_modules
@@ -63,5 +62,8 @@ USER ${USERNAME}
COPY --from=browser --chown=${USERNAME}:${USERNAME} ${PLAYWRIGHT_BROWSERS_PATH} ${PLAYWRIGHT_BROWSERS_PATH}
COPY --chown=${USERNAME}:${USERNAME} packages/playwright-mcp/cli.js packages/playwright-mcp/package.json ./
# Current working directory must be writable as MCP may need to create default output dir in it.
WORKDIR /home/${USERNAME}
# Run in headless and only with chromium (other browsers need more dependencies not included in this image)
ENTRYPOINT ["node", "cli.js", "--headless", "--browser", "chromium", "--no-sandbox"]
ENTRYPOINT ["node", "/app/cli.js", "--headless", "--browser", "chromium", "--no-sandbox"]