fix: update Dockerfile to set Playwright browser path and environment variables

This commit is contained in:
samanhappy
2025-04-14 19:25:26 +08:00
parent 1e6d10a0c3
commit f6c5cde9ce

View File

@@ -19,9 +19,12 @@ RUN mkdir -p $PNPM_HOME && \
ARG INSTALL_EXT=false
RUN if [ "$INSTALL_EXT" = "true" ]; then \
npx -y playwright install --with-deps chromium; \
npx -y playwright install --with-deps chromium --browsers-path=/ms-playwright; \
fi
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
ENV PATH=$PATH:/ms-playwright/chromium-*/chrome-linux/
RUN uv tool install mcp-server-fetch
ENV UV_PYTHON_INSTALL_MIRROR="http://mirrors.aliyun.com/pypi/simple/"