BG5 commited on
Commit
1641cc1
·
verified ·
1 Parent(s): 3e4895c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -35,10 +35,10 @@ COPY . /app
35
  RUN chown -R appuser:appuser /app
36
 
37
  # 安装任何需要的包,使用 --ignore-installed 选项
38
- RUN pip install --no-cache-dir --ignore-installed -r requirements.txt --break-system-packages
39
 
40
  # 切换到非特权用户
41
  USER appuser
42
 
43
  # 设置默认命令(可根据需要修改)
44
- CMD ["/venv/bin/python3.11", "main.py"]
 
35
  RUN chown -R appuser:appuser /app
36
 
37
  # 安装任何需要的包,使用 --ignore-installed 选项
38
+ RUN pip install --no-cache-dir --ignore-installed --break-system-packages -r requirements.txt
39
 
40
  # 切换到非特权用户
41
  USER appuser
42
 
43
  # 设置默认命令(可根据需要修改)
44
+ CMD ["python3.11", "main.py"]