王昱 commited on
Commit
8207ffa
·
1 Parent(s): 2f3f4cc
Files changed (3) hide show
  1. .DS_Store +0 -0
  2. Dockerfile +12 -10
  3. README.md +1 -0
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
Dockerfile CHANGED
@@ -1,10 +1,12 @@
1
- # Dockerfile
2
- FROM diygod/rsshub:latest
3
-
4
- # 环境变量配置
5
- ENV NODE_ENV production
6
- ENV PORT 7860 # Hugging Face Space 要求使用 7860 端口
7
-
8
- # 暴露端口
9
- EXPOSE 7860
10
-
 
 
 
1
+ FROM diygod/rsshub:latest
2
+
3
+ ENV NODE_ENV production
4
+ ENV PORT 7860
5
+ ENV ALLOW_ORIGIN '*'
6
+ ENV BASE_URL=''
7
+ ENV LOGGER_LEVEL=debug # 添加这行以获取更详细的日志
8
+
9
+ EXPOSE 7860
10
+
11
+ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
12
+ CMD curl -f http://localhost:7860/ || exit 1
README.md CHANGED
@@ -4,5 +4,6 @@ emoji: 📰
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
 
7
  pinned: false
8
  ---
 
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
7
+ app_port: 7860 # 确保这行存在
8
  pinned: false
9
  ---