Curious1008 commited on
Commit
86cdcde
·
verified ·
1 Parent(s): 1be6020

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # 安装依赖
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # 复制应用代码
10
+ COPY server.py pipeline_v6.py config.py ./
11
+ COPY patterns_cn_ref.json writing_intuition_guides.json ./
12
+ COPY chroma_db_intuition/ ./chroma_db_intuition/
13
+ COPY static/ ./static/
14
+
15
+ # HF Spaces 要求端口 7860
16
+ ENV PORT=7860
17
+ EXPOSE 7860
18
+
19
+ CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]