Prathamesh Sable commited on
Commit
fa5c917
·
1 Parent(s): e00f51b

docker update

Browse files
Files changed (2) hide show
  1. dockerfile +4 -4
  2. requirements.txt +1 -1
dockerfile CHANGED
@@ -1,9 +1,9 @@
1
  FROM python:3.8
2
 
3
- WORKDIR /
4
 
5
- COPY . /
6
 
7
- RUN pip install -r requirements.txt
8
 
9
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
 
1
  FROM python:3.8
2
 
3
+ COPY . .
4
 
5
+ WORKDIR /
6
 
7
+ RUN pip install --no-cache-dir --upgrade -r /requirements.txt
8
 
9
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
  flask
2
- gunicorn
3
  fast-api
 
1
  flask
2
+ uvicorn
3
  fast-api