Skip to content

Commit

Permalink
Add default 4 threads to uvicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
ismvru committed Jul 7, 2024
1 parent 3c41e10 commit 6b258d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ COPY . /code/
RUN . /venv/bin/activate && poetry install --only main --no-root && poetry build

FROM python:3.12-slim
ENV WEB_CONCURRENCY=4
WORKDIR /app
COPY --from=builder /venv /venv
COPY --from=builder /code/dist /app/
Expand Down

0 comments on commit 6b258d3

Please sign in to comment.