nhanne24 commited on
Commit
dbdb2b3
·
verified ·
1 Parent(s): a560dfb
Files changed (2) hide show
  1. DockerFile +1 -1
  2. requirements.txt +2 -1
DockerFile CHANGED
@@ -11,4 +11,4 @@ COPY --chown=user ./requirements.txt requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
  COPY --chown=user . /app
14
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
  COPY --chown=user . /app
14
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
requirements.txt CHANGED
@@ -8,4 +8,5 @@ scikit-learn==1.6.1
8
  Flask==3.1.1
9
  gdown==5.1.0
10
  tensorflow-cpu==2.15.0
11
- underthesea==6.6.0
 
 
8
  Flask==3.1.1
9
  gdown==5.1.0
10
  tensorflow-cpu==2.15.0
11
+ underthesea==6.6.0
12
+ gunicorn==20.1.0