Skip to content

Commit b91effb

Browse files
committed
feat: allowed custom specification of workers in Dockerfile
1 parent 50a9a02 commit b91effb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ COPY . .
1616

1717
EXPOSE 8000
1818

19-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"]
19+
ENV WORKERS=3
20+
21+
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port 8000 --proxy-headers --workers ${WORKERS}"]

0 commit comments

Comments
 (0)