Asem123 commited on
Commit
3a14a46
·
verified ·
1 Parent(s): c9de619

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -7,12 +7,19 @@
7
  FROM idootop/migpt-next:latest
8
  WORKDIR /app
9
 
 
10
  COPY config.js /app/config.js
 
 
11
  COPY start.sh /usr/local/bin/start.sh
12
  RUN chmod +x /usr/local/bin/start.sh
13
 
 
14
  ENV PORT=7860
 
 
15
  ENTRYPOINT ["/usr/local/bin/start.sh"]
16
 
17
 
18
 
 
 
7
  FROM idootop/migpt-next:latest
8
  WORKDIR /app
9
 
10
+ # 你的私密配置(镜像默认读取 /app/config.js)
11
  COPY config.js /app/config.js
12
+
13
+ # 启动脚本
14
  COPY start.sh /usr/local/bin/start.sh
15
  RUN chmod +x /usr/local/bin/start.sh
16
 
17
+ # 告诉 HF 监听端口
18
  ENV PORT=7860
19
+
20
+ # 用我们的 ENTRYPOINT;不再接力原 entrypoint
21
  ENTRYPOINT ["/usr/local/bin/start.sh"]
22
 
23
 
24
 
25
+