venkata1995 commited on
Commit
27c1bf1
·
verified ·
1 Parent(s): cec4217

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -3,12 +3,8 @@ FROM python:3.9
3
  WORKDIR /code
4
 
5
  COPY requirements.txt .
6
- RUN pip install -r requirements.txt
7
 
8
  COPY ./app ./app
9
- COPY ./frontend ./frontend
10
 
11
- # Install uvicorn and Gradio
12
- RUN pip install fastapi uvicorn gradio
13
-
14
- CMD uvicorn app.main:app --host 0.0.0.0 --port 8000 & python frontend/app.py
 
3
  WORKDIR /code
4
 
5
  COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY ./app ./app
 
9
 
10
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]