solitudeLin commited on
Commit
a11935b
1 Parent(s): 596ec6f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -13,7 +13,9 @@ ENV PATH=/opt/conda/bin:$PATH
13
  RUN git clone https://github.com/InternLM/MindSearch.git /app
14
 
15
  WORKDIR /app
16
-
 
 
17
  # 创建并激活 fastapi 环境,并安装依赖包
18
  RUN conda create --name fastapi python=3.10 -y && \
19
  conda run -n fastapi pip install -r requirements.txt && \
@@ -24,6 +26,7 @@ EXPOSE 8000
24
 
25
  # 启动 FastAPI 服务
26
  CMD ["conda", "run", "-n", "fastapi", "uvicorn", "mindsearch.app:app", "--host", "0.0.0.0", "--port", "8000"]
27
-
 
28
  # Run streamlit app when the container launches
29
  CMD ["streamlit", "run", "frontend/mindsearch_streamlit.py"]
 
13
  RUN git clone https://github.com/InternLM/MindSearch.git /app
14
 
15
  WORKDIR /app
16
+ # 复制应用程序代码和依赖文件
17
+ COPY frontend/mindsearch_streamlit.py ./frontend/mindsearch_streamlit.py
18
+ COPY requirements.txt ./
19
  # 创建并激活 fastapi 环境,并安装依赖包
20
  RUN conda create --name fastapi python=3.10 -y && \
21
  conda run -n fastapi pip install -r requirements.txt && \
 
26
 
27
  # 启动 FastAPI 服务
28
  CMD ["conda", "run", "-n", "fastapi", "uvicorn", "mindsearch.app:app", "--host", "0.0.0.0", "--port", "8000"]
29
+ # 暴露 Streamlit 默认端口
30
+ EXPOSE 8501
31
  # Run streamlit app when the container launches
32
  CMD ["streamlit", "run", "frontend/mindsearch_streamlit.py"]