Skip to content

Commit

Permalink
edit docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Dec 13, 2023
1 parent 548caaa commit f006bb2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f006bb2

Please sign in to comment.