Files

15 lines
462 B
Docker

FROM mcr.microsoft.com/playwright/python:v1.45.0-jammy
WORKDIR /app
# copiamos e instalamos dependencias
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# copiamos el resto del código
COPY . .
# gunicorn con 2 workers y 4 threads por worker
# gunicorn -k gthread -w 2 --threads 4 -b 0.0.0.0:5000 central_api:app
CMD ["gunicorn", "-k", "gthread", "-w", "2", "--threads", "4", "-b", "0.0.0.0:5000", "central_api:app"]