diff --git a/Dockerfile b/Dockerfile index e45de8d..b2bb58e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,11 +12,13 @@ # docker build -t artex:local . FROM python:3.12-slim-bookworm ARG TARGETARCH -# 常用工具:ripgrep / curl / vim / npm,加一批 recon 常备件(按需增删) +# 常用工具:ripgrep / curl / vim,加一批 recon 常备件(按需增删)。 +# Node 从 NodeSource 装 20.x:bookworm 自带的 apt nodejs 是 18,Playwright 要求 >=20。 RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates ripgrep curl wget vim git jq unzip \ - nodejs npm \ dnsutils iputils-ping netcat-openbsd whois nmap \ + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y --no-install-recommends nodejs \ && rm -rf /var/lib/apt/lists/* # 预装 Playwright MCP 与 CLI(全局),运行时不再 npx 联网下载。 # @playwright/mcp:browser MCP 直接 `npx @playwright/mcp`(已全局装好,无需 -y/@latest)。