ghbGC commited on
Commit
256524e
·
1 Parent(s): af9b4db
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -42,5 +42,8 @@ COPY . /app
42
  # 暴露端口
43
  EXPOSE 8501
44
 
 
 
 
45
  # 运行命令
46
  CMD ["streamlit", "run", "app.py"]
 
42
  # 暴露端口
43
  EXPOSE 8501
44
 
45
+ # 确保在运行streamlit之前激活Conda环境
46
+ SHELL ["conda", "run", "-n", "lagent", "/bin/bash", "-c"]
47
+
48
  # 运行命令
49
  CMD ["streamlit", "run", "app.py"]