mirror of
https://github.com/7836246/cursor2api.git
synced 2026-05-08 06:38:20 +08:00
- 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>
22 lines
441 B
Docker
22 lines
441 B
Docker
# 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"]
|