smgc commited on
Commit
0feefe3
1 Parent(s): 7a7b392

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -23,5 +23,6 @@ COPY . .
23
  # Make port 8000 available to the world outside this container
24
  EXPOSE 8000
25
 
26
- # Run the application
27
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
23
  # Make port 8000 available to the world outside this container
24
  EXPOSE 8000
25
 
26
+ ENV PYTHONUNBUFFERED=1
27
+
28
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "app:app"]