diff --git a/src/Dockerfile_ecs b/src/Dockerfile_ecs index 1fb8fa75..605f9471 100644 --- a/src/Dockerfile_ecs +++ b/src/Dockerfile_ecs @@ -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}"]