Spaces:
Sleeping
Sleeping
Vela
commited on
Commit
·
506cb53
1
Parent(s):
064ae99
modified dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -15,6 +15,9 @@ RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
|
15 |
# Install tmux to run multiple processes
|
16 |
RUN apt-get update && apt-get install -y tmux
|
17 |
|
|
|
|
|
|
|
18 |
# Start FastAPI & Streamlit together using tmux
|
19 |
|
20 |
CMD ["sh", "-c", "uvicorn src.backend.main:app --host 0.0.0.0 --port 8000 & sleep 5 && streamlit run src/frontend/home.py --server.port 7860 --server.address 0.0.0.0"]
|
|
|
15 |
# Install tmux to run multiple processes
|
16 |
RUN apt-get update && apt-get install -y tmux
|
17 |
|
18 |
+
# Set Python path
|
19 |
+
ENV PYTHONPATH="/app/src"
|
20 |
+
|
21 |
# Start FastAPI & Streamlit together using tmux
|
22 |
|
23 |
CMD ["sh", "-c", "uvicorn src.backend.main:app --host 0.0.0.0 --port 8000 & sleep 5 && streamlit run src/frontend/home.py --server.port 7860 --server.address 0.0.0.0"]
|