Fix healthcheck in Dockerfile_ecs (#199)

The healthcheck in Dockerfile_ecs uses the hardcoded port instead of ENV setting. This was fixed.
This commit is contained in:
Viktor Isaev
2025-11-20 10:30:00 +04:00
committed by GitHub
parent ce4cfabb21
commit b3c1c82367

View File

@@ -21,6 +21,6 @@ RUN python3 -c 'import tiktoken_ext.openai_public as tke; tke.cl100k_base()'
ENV PORT=8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health').read()"
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:${PORT}/health').read()"
CMD ["sh", "-c", "uvicorn api.app:app --host 0.0.0.0 --port ${PORT}"]