pouluo commited on
Commit
49558bb
·
verified ·
1 Parent(s): 7e9c0ff

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # 项目本身零依赖(全用 Python 标准库),不需要 pip install
6
+ COPY gemini_web2api.py .
7
+
8
+ # HF Spaces 默认把外部流量路由到 7860
9
+ EXPOSE 7860
10
+
11
+ # 跑起来,host 默认就是 0.0.0.0
12
+ CMD ["python", "gemini_web2api.py", "--port", "7860"]