Skip to content

Commit

Permalink
Changed up docker file agian
Browse files Browse the repository at this point in the history
  • Loading branch information
day-mon committed Jan 16, 2024
1 parent 518d05a commit 8092049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ RUN pip3 install poetry==1.7.1
RUN poetry config virtualenvs.create false
RUN touch README.md
RUN poetry install --only main,api

ENV LOGURU_LEVEL=INFO
COPY . .
ENTRYPOINT ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8080"]
ENTRYPOINT ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8080", "--workers" , "3", "--no-access-log"]
2 changes: 1 addition & 1 deletion api/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ async def log(request: Request, call_next):
app.include_router(router, prefix=BASE_PATH, dependencies=[Depends(log_body)])

if __name__ == "__main__":
uvicorn.run("main:app", host="0.0.0.0", port=8000, access_log=False, reload=os.getenv("DEBUG", 'True') == 'True')
uvicorn.run("main:app", host="0.0.0.0", port=8000, access_log=False, reload=True)

0 comments on commit 8092049

Please sign in to comment.