BG5 commited on
Commit
1501761
·
verified ·
1 Parent(s): a9152bd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -42,6 +42,7 @@ RUN apt-get update && apt-get install -y \
42
  # 同时运行 python main.py 和 bash install.sh
43
  # RUN python main.py & \
44
  # bash quick_start.sh
45
-
 
46
 
47
  CMD ["sh", "-c", "python main.py"]
 
42
  # 同时运行 python main.py 和 bash install.sh
43
  # RUN python main.py & \
44
  # bash quick_start.sh
45
+ # 安装任何需要的包,使用 --ignore-installed 选项
46
+ RUN pip install --no-cache-dir --ignore-installed -r requirements.txt
47
 
48
  CMD ["sh", "-c", "python main.py"]