From f006bb243d5443bb03763ac6f54d882d07503c2e Mon Sep 17 00:00:00 2001 From: baloola Date: Wed, 13 Dec 2023 16:03:09 +0100 Subject: [PATCH] edit docker file --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1274b11..0807ae1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,11 @@ WORKDIR /srv/service ADD requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -ADD . . +ADD . /srv/service USER www-data -CMD ["gunicorn", "--bind=0.0.0.0:8080", "--config", "gunicorn.conf.py", "--workers=3", "-k", "uvicorn.workers.UvicornWorker", "--log-level=INFO", "fairicube_catalog_backend:app"] + +CMD ["uvicorn", "--reload", "--host=0.0.0.0", "--port", "5000", "--log-level=debug", "--reload", "fairicube_catalog_backend:app"] + +EXPOSE 5000 \ No newline at end of file