Commit
·
5656120
1
Parent(s):
e534e00
Update Dockerfile
Browse files- Dockerfile +11 -6
Dockerfile
CHANGED
|
@@ -20,14 +20,19 @@ ENV PYTHONPATH="/app"
|
|
| 20 |
# Copy project files
|
| 21 |
COPY . /app
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# Install Python dependencies
|
| 24 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
| 25 |
|
| 26 |
-
# Expose Streamlit port
|
| 27 |
-
EXPOSE 7860
|
| 28 |
|
| 29 |
-
# Run both FastAPI and Streamlit using a wrapper script
|
| 30 |
-
# CMD ["python", "app.py"]
|
| 31 |
-
# CMD ["streamlit", "run", "app/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
| 32 |
-
CMD ["bash", "-c", "python scheduler/schedule_tasks.py & python monitor/monitor_drift.py & streamlit run app/streamlit_app.py"]
|
| 33 |
|
|
|
|
|
|
|
|
|
| 20 |
# Copy project files
|
| 21 |
COPY . /app
|
| 22 |
|
| 23 |
+
# Make the startup script executable
|
| 24 |
+
RUN chmod +x /app/start.sh
|
| 25 |
+
|
| 26 |
# Install Python dependencies
|
| 27 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
| 28 |
|
| 29 |
+
# # Expose Streamlit port
|
| 30 |
+
# EXPOSE 7860
|
| 31 |
|
| 32 |
+
# # Run both FastAPI and Streamlit using a wrapper script
|
| 33 |
+
# # CMD ["python", "app.py"]
|
| 34 |
+
# # CMD ["streamlit", "run", "app/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
| 35 |
+
# CMD ["bash", "-c", "python scheduler/schedule_tasks.py & python monitor/monitor_drift.py & streamlit run app/streamlit_app.py"]
|
| 36 |
|
| 37 |
+
# Run the startup script
|
| 38 |
+
CMD ["./start.sh"]
|