yi124773651 commited on
Commit
55efbd8
·
verified ·
1 Parent(s): ae7a2d1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 直接使用你的原始镜像
2
+ FROM eceasy/cli-proxy-api:latest
3
+
4
+ # 设置环境变量:Hugging Face 强制要求 7860
5
+ ENV PORT=7860
6
+
7
+ # 暴露端口
8
+ EXPOSE 7860
9
+
10
+ # 启动命令:使用 --port 参数确保监听 7860
11
+ # 注意:根据镜像内部路径,可能需要使用绝对路径 /app/cli-proxy-api
12
+ CMD ["/app/cli-proxy-api", "--port", "7860"]