Download Dockerfile from dsjbot/cfc: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/dsjbot/cfc/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dsjbot/cfc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dsjbot/cfc/resolve/main/Dockerfile
519 Bytes
| FROM ghcr.io/flaresolverr/flaresolverr:latest | |
| ENV PORT=7860 | |
| ENV HOST=0.0.0.0 | |
| ENV LOG_LEVEL=info | |
| ENV TZ=Asia/Shanghai | |
| ENV DISABLE_MEDIA=true | |
| # --- 新增:专门对付容器内 Chrome 假死 --- | |
| # 禁用 /dev/shm 共享内存,改用 /tmp,防止内存溢出导致卡死 | |
| ENV DBUS_SESSION_BUS_ADDRESS=/dev/null | |
| # 指定 Chrome 以无沙盒模式运行的核心参数(FlareSolverr 底层会读取并透传) | |
| ENV CHROME_ARGS="--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage --disable-gpu" | |
| EXPOSE 7860 |