StarrySkyWorld commited on
Commit
83199db
·
verified ·
1 Parent(s): 9f2bb01

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -14
Dockerfile CHANGED
@@ -18,20 +18,7 @@ RUN apt-get update && apt-get install -y \
18
  ENV PYTHONUNBUFFERED=1
19
  ENV FILE_LINK=""
20
 
21
- # 创建依赖文件
22
- RUN echo "fastapi==0.104.1" > /app/deps.txt && \
23
- echo "uvicorn[standard]==0.24.0" >> /app/deps.txt && \
24
- echo "pydantic==2.5.0" >> /app/deps.txt && \
25
- echo "ultralytics==8.0.200" >> /app/deps.txt && \
26
- echo "transformers==4.35.0" >> /app/deps.txt && \
27
- echo "torch==2.1.0" >> /app/deps.txt && \
28
- echo "torchvision==0.16.0" >> /app/deps.txt && \
29
- echo "opencv-python==4.8.1.78" >> /app/deps.txt && \
30
- echo "pillow==10.1.0" >> /app/deps.txt && \
31
- echo "numpy==1.24.3" >> /app/deps.txt && \
32
- echo "camoufox==0.4.0" >> /app/deps.txt && \
33
- echo "playwright==1.40.0" >> /app/deps.txt && \
34
- echo "requests==2.31.0" >> /app/deps.txt
35
 
36
  # 安装依赖
37
  RUN pip install --no-cache-dir -r /app/deps.txt
 
18
  ENV PYTHONUNBUFFERED=1
19
  ENV FILE_LINK=""
20
 
21
+ COPY ./deps.txt deps.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  # 安装依赖
24
  RUN pip install --no-cache-dir -r /app/deps.txt