AsusHP commited on
Commit
e794ee0
·
1 Parent(s): 72de19a

add gunicorn

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. deploy/requirements.txt +2 -1
Dockerfile CHANGED
@@ -8,4 +8,4 @@ COPY ./deploy /app
8
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
8
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app.py"]
deploy/requirements.txt CHANGED
@@ -4,4 +4,5 @@ Werkzeug==2.2.2
4
  tensorflow==2.12.0
5
  opencv-python==4.8.1.78
6
  numpy==1.23.1
7
- Pillow==9.3.0
 
 
4
  tensorflow==2.12.0
5
  opencv-python==4.8.1.78
6
  numpy==1.23.1
7
+ Pillow==9.3.0
8
+ gunicorn