supertskone commited on
Commit
ca4476e
·
verified ·
1 Parent(s): 21f8bdb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -16,10 +16,9 @@ RUN apt-get update && apt-get install -y \
16
  RUN pip install --no-cache-dir --upgrade pip
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- # Expose port 8501 for Streamlit
20
  EXPOSE 8501
 
21
 
22
- # Run the Streamlit app
23
- # CMD ["streamlit", "run", "run.py", "--server.port=8501", "--server.address=0.0.0.0"]
24
- CMD ["streamlit", "run", "ui/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
25
-
 
16
  RUN pip install --no-cache-dir --upgrade pip
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # Expose port 8501 for Streamlit and port 5000 for Flask
20
  EXPOSE 8501
21
+ EXPOSE 5000
22
 
23
+ # Run data loading, backend, and frontend
24
+ CMD ["sh", "-c", "python load_data.py && python run.py & streamlit run ui/app.py --server.port=8501 --server.address=0.0.0.0"]