solitudeLin commited on
Commit
c85b1e1
·
verified ·
1 Parent(s): 58e44ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -1,12 +1,11 @@
1
- # 使用RSSHub基础镜像
2
- FROM diygod/rsshub
3
 
4
  # 设置环境变量
5
  ENV NODE_ENV=production
6
  ENV PORT=7860
7
  ENV CACHE_TYPE=memory
8
- # 禁用Puppeteer相关配置
9
- # ENV PUPPETEER_WS_ENDPOINT="ws://browserless:3000"
10
 
11
  # 暴露端口
12
  EXPOSE 7860
@@ -14,7 +13,6 @@ EXPOSE 7860
14
  # 健康检查
15
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
16
  CMD curl -f http://localhost:7860/healthz || exit 1
17
- CMD ["npx", "puppeteer browsers install" "chrome"]
18
 
19
- # 启动命令
20
  CMD ["npm", "start", "--", "--port", "7860"]
 
1
+ # 使用chromium-bundled版本,避免安装步骤
2
+ FROM diygod/rsshub:chromium-bundled
3
 
4
  # 设置环境变量
5
  ENV NODE_ENV=production
6
  ENV PORT=7860
7
  ENV CACHE_TYPE=memory
8
+ ENV CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
 
9
 
10
  # 暴露端口
11
  EXPOSE 7860
 
13
  # 健康检查
14
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
15
  CMD curl -f http://localhost:7860/healthz || exit 1
 
16
 
17
+ # 启动RSSHub
18
  CMD ["npm", "start", "--", "--port", "7860"]