aman1762 commited on
Commit
39f1b00
·
verified ·
1 Parent(s): e0f2984

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -8,7 +8,5 @@ RUN pip install --no-cache-dir -r requirements.txt
8
  COPY . .
9
 
10
  EXPOSE 7860
11
- EXPOSE 8000
12
 
13
- # Start uvicorn (foreground backgrounded without redirect), wait a little, then start streamlit on 7860.
14
- CMD ["sh", "-c", "uvicorn api:app --host 0.0.0.0 --port 8000 & sleep 5; streamlit run app.py --server.port 7860 --server.address 0.0.0.0"]
 
8
  COPY . .
9
 
10
  EXPOSE 7860
 
11
 
12
+ CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]