Spaces:
Running
Running
Download Dockerfile from solitudeLin/rsshub: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/spaces/solitudeLin/rsshub/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/solitudeLin/rsshub/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/solitudeLin/rsshub/resolve/main/Dockerfile
511 Bytes
| # 使用chromium-bundled版本 | |
| FROM diygod/rsshub:chromium-bundled | |
| # 设置环境变量,不指定CHROMIUM_EXECUTABLE_PATH,让Puppeteer自动检测 | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| ENV CACHE_TYPE=memory | |
| # 移除CHROMIUM_EXECUTABLE_PATH设置,让Puppeteer自动查找 | |
| # 暴露端口 | |
| EXPOSE 7860 | |
| # 健康检查 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:7860/healthz || exit 1 | |
| # 启动RSSHub | |
| CMD ["npm", "start", "--", "--port", "7860"] |