CV app docker fix
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user