shahabkahn commited on
Commit
0a41882
·
verified ·
1 Parent(s): d07f8be

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -5
Dockerfile CHANGED
@@ -50,8 +50,5 @@ COPY . .
50
  EXPOSE 7860
51
  EXPOSE 8501
52
 
53
- # Run the FastAPI application using uvicorn
54
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
55
-
56
- # Start the Streamlit application separately
57
- CMD ["streamlit", "run", "frontend.py", "--server.port", "8501", "--server.enableXsrfProtection", "false"]
 
50
  EXPOSE 7860
51
  EXPOSE 8501
52
 
53
+ # Run the application.
54
+ CMD ["bash", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501 --server.enableXsrfProtection false"]