Skip to content

Commit 5a969ef

Browse files
committed
fix: use JSON arguments for CMD to prevent unintended behavior related to OS signals
1 parent 8db0af6 commit 5a969ef

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ ENV PORT=8089
2020

2121
EXPOSE ${PORT}
2222

23-
CMD .venv/bin/uvicorn mock_login.main:app --proxy-headers --host ${HOST} --port ${PORT}
23+
ENTRYPOINT [ "./entrypoint.sh" ]

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build-backend = "poetry.core.masonry.api"
1818

1919
[tool.poetry]
2020
requires-poetry = ">=2.0"
21-
version = "0.1.0"
21+
version = "0.1.1"
2222

2323
[tool.poetry.group.dev.dependencies]
2424
pytest = "^8.3.4"

src/entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
.venv/bin/uvicorn mock_login.main:app --proxy-headers --host ${HOST} --port ${PORT}

0 commit comments

Comments
 (0)