Skip to content

Commit b3c1c82

Browse files
authored
Fix healthcheck in Dockerfile_ecs (#199)
The healthcheck in Dockerfile_ecs uses the hardcoded port instead of ENV setting. This was fixed.
1 parent ce4cfab commit b3c1c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dockerfile_ecs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ RUN python3 -c 'import tiktoken_ext.openai_public as tke; tke.cl100k_base()'
2121
ENV PORT=8080
2222

2323
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
24-
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health').read()"
24+
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:${PORT}/health').read()"
2525

2626
CMD ["sh", "-c", "uvicorn api.app:app --host 0.0.0.0 --port ${PORT}"]

0 commit comments

Comments
 (0)