Files
cursor2api/stealth-proxy/Dockerfile
BaskDuan 0f8b3246ed feat: 内置 stealth-proxy 到 Docker 镜像,一个容器搞定 Vercel Bot Protection
- Dockerfile 从 alpine 切换到 slim (Debian) 以支持 Playwright Chromium
- 新增 start.sh 入口脚本,ENABLE_STEALTH=true 时自动启动内置 stealth-proxy
- docker-compose.yml 简化为单容器方案,默认启用 stealth 模式
- 新增 cookie/stealth_proxy/system_prompt 配置项及环境变量支持
- deploy-all.sh 加入 .gitignore(含敏感服务器信息)
- 更新默认指纹为 macOS Chrome 146

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 15:44:32 +08:00

22 lines
441 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# stealth-proxy Dockerfile
# 基于 Debian slim安装 Chromium 及其依赖
FROM node:22-slim
WORKDIR /app
# 安装 npm 依赖
COPY package.json ./
RUN npm install --omit=dev
# 安装 Playwright Chromium 及系统依赖(字体、图形库等)
RUN npx playwright install --with-deps chromium
COPY index.js ./
# 非 root 用户运行Chromium 需要 --no-sandbox
ENV NODE_ENV=production
EXPOSE 3011
CMD ["node", "index.js"]