Download stealth-proxy/Dockerfile from Spooker/g2api: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/spaces/Spooker/g2api/resolve/main/stealth-proxy/Dockerfile
- Command line
-
hf download hf://spaces/Spooker/g2api/stealth-proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Spooker/g2api/resolve/main/stealth-proxy/Dockerfile
441 Bytes
| # 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"] | |