habulaj commited on
Commit
994f645
verified
1 Parent(s): 35fa675

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -11,13 +11,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
11
  llvm \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Instala o gunicorn
15
- RUN pip install --no-cache-dir gunicorn
16
-
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  COPY . .
21
 
22
- # Usa o gunicorn com uvicorn workers e reinicia cada worker ap贸s 10 requisi莽玫es
23
- CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "--max-requests", "10", "--max-requests-jitter", "2", "app:app"]
 
11
  llvm \
12
  && rm -rf /var/lib/apt/lists/*
13
 
 
 
 
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  COPY . .
18
 
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]