Alexvatti commited on
Commit
9e04f38
·
verified ·
1 Parent(s): 990fade

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -6,8 +6,10 @@ ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
  WORKDIR /app
8
 
9
- COPY --chown=user ./requirements.txt requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
13
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
6
 
7
  WORKDIR /app
8
 
9
+ COPY --chown=user requirements.txt requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
13
+
14
+ # Run Flask app with Gunicorn (WSGI server)
15
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]