Skip to content

Commit 43af8ed

Browse files
committed
Refactor Dockerfile to separate ENTRYPOINT and CMD for improved clarity
1 parent 2afbd3e commit 43af8ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ EXPOSE ${PORT}
5555
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
5656
CMD python -c "import httpx; httpx.get('http://127.0.0.1:${PORT}/metrics/')" || exit 1
5757

58-
CMD ["sh", "-c", "exec uvicorn asgi:app --host 0.0.0.0 --port ${PORT}"]
58+
ENTRYPOINT ["sh", "-c"]
59+
CMD ["exec uvicorn asgi:app --host 0.0.0.0 --port ${PORT}"]

0 commit comments

Comments
 (0)