Spaces:
Running
Running
solitudeLin
commited on
Commit
•
2cfdc83
1
Parent(s):
d46cab2
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -23,4 +23,7 @@ RUN conda create --name fastapi python=3.10 -y && \
|
|
23 |
EXPOSE 8000
|
24 |
|
25 |
# 启动 FastAPI 服务
|
26 |
-
CMD ["conda", "run", "
|
|
|
|
|
|
|
|
23 |
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"]
|