add PROFILE env

This commit is contained in:
朱潮 2025-12-24 12:51:12 +08:00
parent b86a8364e9
commit 7a21df05a3

View File

@ -48,5 +48,5 @@ EXPOSE 8001
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8001/api/health || exit 1 CMD curl -f http://localhost:8001/api/health || exit 1
# 启动命令 - 使用优化的统一启动脚本 # 启动命令 - profile通过环境变量PROFILE配置默认为balanced
CMD ["python3", "start_unified.py", "--profile", "balanced"] CMD ["sh", "-c", "python3 start_unified.py --profile ${PROFILE:-balanced}"]