Spaces:
Sleeping
Sleeping
Commit
·
6d255dd
1
Parent(s):
9cbd08e
code changes
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -21,4 +21,6 @@ RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
|
| 21 |
RUN apt-get update && apt-get install -y tmux
|
| 22 |
|
| 23 |
# Start FastAPI & Streamlit together using tmux
|
| 24 |
-
CMD ["sh", "-c", "tmux new-session -d -s fastapi 'uvicorn backend.main:app --host 0.0.0.0 --port 7860' && streamlit run Frontend/app.py --server.port 7860 --server.address 0.0.0.0"]
|
|
|
|
|
|
|
|
|
| 21 |
RUN apt-get update && apt-get install -y tmux
|
| 22 |
|
| 23 |
# Start FastAPI & Streamlit together using tmux
|
| 24 |
+
# CMD ["sh", "-c", "tmux new-session -d -s fastapi 'uvicorn backend.main:app --host 0.0.0.0 --port 7860' && streamlit run Frontend/app.py --server.port 7860 --server.address 0.0.0.0"]
|
| 25 |
+
|
| 26 |
+
CMD ["sh", "-c", "uvicorn backend.main:app --host 0.0.0.0 --port 8000 & sleep 5 && streamlit run Frontend/app.py --server.port 7860 --server.address 0.0.0.0"]
|