Forrest99 commited on
Commit
8e74b06
·
verified ·
1 Parent(s): 8f67f6c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -3,7 +3,10 @@ FROM python:3.9-slim
3
  WORKDIR /app
4
  COPY . .
5
 
6
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
7
 
8
  EXPOSE 5000
9
  CMD ["python", "app.py"]
 
3
  WORKDIR /app
4
  COPY . .
5
 
6
+ # 先安装依赖确保版本正确
7
+ RUN pip install --no-cache-dir -r requirements.txt \
8
+ && pip install "sentence-transformers" \
9
+ && pip install "torch" --extra-index-url https://download.pytorch.org/whl/cpu
10
 
11
  EXPOSE 5000
12
  CMD ["python", "app.py"]