leonsimon23 commited on
Commit
c0c040b
·
verified ·
1 Parent(s): 1a1a2b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -14,12 +14,16 @@ RUN git clone https://github.com/leoncool23/testStreamlit.git .
14
  # 安装依赖
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
 
 
 
17
  # 暴露Streamlit默认端口
18
- EXPOSE 8501
19
 
20
  # 设置环境变量
21
  # ENV PYTHONUNBUFFERED=1
22
 
23
  # 运行Streamlit应用
24
- CMD ["streamlit", "run", "app.py"]
25
  #CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
14
  # 安装依赖
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+
18
+ EXPOSE 7860
19
+ CMD ["streamlit", "run", "app.py", "--server.port=7860"]
20
+
21
  # 暴露Streamlit默认端口
22
+ #EXPOSE 8501
23
 
24
  # 设置环境变量
25
  # ENV PYTHONUNBUFFERED=1
26
 
27
  # 运行Streamlit应用
28
+ #CMD ["streamlit", "run", "app.py"]
29
  #CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]