The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(docker): add non-root USER and HEALTHCHECK to Dockerfile.custom_ui
Yuneng Jiang4272d80c8367
diff --git a/docker/Dockerfile.custom_ui b/docker/Dockerfile.custom_uiindex f836190a49a..11449af42ef 100644--- a/docker/Dockerfile.custom_ui+++ b/docker/Dockerfile.custom_ui@@ -71,8 +71,15 @@ WORKDIR /appRUN sed -i 's/\r$//' docker/entrypoint.sh && chmod +x docker/entrypoint.shRUN sed -i 's/\r$//' docker/prod_entrypoint.sh && chmod +x docker/prod_entrypoint.sh+# Run as non-root user+RUN groupadd --gid 1000 appuser && useradd --uid 1000 --gid 1000 --no-create-home appuser+USER appuser+# Expose the necessary portEXPOSE 4000/tcp+HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \+ CMD ["python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:4000/health')"]+# Override the CMD instruction with your desired command and argumentsCMD ["--port", "4000", "--config", "config.yaml", "--detailed_debug"]\ No newline at end of file