CV app docker fix

This commit is contained in:
Luciano Gervasoni
2025-04-30 22:31:24 +02:00
parent d7df5b4ea4
commit aa7aca3e66
3 changed files with 28 additions and 31 deletions

View File

@@ -18,11 +18,10 @@ RUN curl "https://drive.usercontent.google.com/download?id=1lHTrW1rmYoYnMSUlhLwq
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
RUN pip freeze
# CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "app:app"]
CMD ["uvicorn", "--port", "5000", "--workers", "2", "app:app"]
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "5000", "--workers", "1", "--log-level", "info", "app:app"]
# docker build -t fetcher_cv .
# docker run --rm -p 5000:5000 fetcher_cv