Skip to content

Commit

Permalink
👷 Change dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lleans committed Mar 12, 2024
1 parent ff3a4cc commit 6746d6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ COPY . /app
WORKDIR /app
RUN pip3 install -Ur requirements.txt

CMD python3 "gunicorn router:app -w 4 -k uvicorn.workers.UvicornWorker"
CMD ["gunicorn" , "router:app", "-w 4", "-k uvicorn.workers.UvicornWorker"]
2 changes: 1 addition & 1 deletion router.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ async def main_app(query: str, calcMethod: str = "", asjurMethod: str = "") -> J
async def docs(e):
return RedirectResponse('https://github.com/lleans/Muslim-Pro-Scrapper')

uvicorn.run("router:app", port=environ.get('PORT') or 8000, workers=4)
uvicorn.run("router:app", port=int(environ.get('PORT')) or 8000, workers=4)

0 comments on commit 6746d6c

Please sign in to comment.