diff --git a/Dockerfile b/Dockerfile
index 147c7ce..4c0c868 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,5 @@
ARG NODE_IMAGE=node:22-bookworm
+ARG RUNTIME_NODE_IMAGE=node:22-bookworm-slim
FROM ${NODE_IMAGE} AS build
WORKDIR /app
@@ -13,7 +14,16 @@ RUN npm ci
COPY . .
RUN npm run build:docker
-FROM ${NODE_IMAGE} AS runtime
+FROM ${NODE_IMAGE} AS production-deps
+WORKDIR /app
+ENV NODE_ENV=production
+
+COPY package.json package-lock.json ./
+COPY packages/core/package.json packages/core/package.json
+RUN npm ci --omit=dev --workspace=@claude-code-router/core --include-workspace-root=false \
+ && npm cache clean --force
+
+FROM ${RUNTIME_NODE_IMAGE} AS runtime
ENV NODE_ENV=production \
CCR_DATA_DIR=/data \
CCR_WEB_HOST=127.0.0.1 \
@@ -28,14 +38,25 @@ ENV NODE_ENV=production \
WORKDIR /app
RUN apt-get update \
- && apt-get install -y --no-install-recommends ca-certificates nginx \
+ && apt-get install -y --no-install-recommends ca-certificates libstdc++6 nginx \
&& rm -rf /var/lib/apt/lists/* \
- && rm -f /etc/nginx/sites-enabled/default /etc/nginx/conf.d/default.conf
+ && rm -f /etc/nginx/sites-enabled/default /etc/nginx/conf.d/default.conf \
+ && rm -rf \
+ /opt/yarn-* \
+ /usr/local/bin/corepack \
+ /usr/local/bin/npm \
+ /usr/local/bin/npx \
+ /usr/local/bin/yarn \
+ /usr/local/bin/yarnpkg \
+ /usr/local/include/node \
+ /usr/local/lib/node_modules/corepack \
+ /usr/local/lib/node_modules/npm \
+ /usr/local/share/doc \
+ /usr/local/share/man
COPY package.json package-lock.json ./
COPY packages/core/package.json packages/core/package.json
-RUN npm ci --omit=dev --workspace=@claude-code-router/core --include-workspace-root=false \
- && npm cache clean --force
+COPY --from=production-deps /app/node_modules node_modules
COPY --from=build /app/packages/core/dist packages/core/dist
COPY --from=build /app/packages/ui/dist/renderer /usr/share/nginx/html
diff --git a/README.md b/README.md
index a564e4d..10f4c32 100644
--- a/README.md
+++ b/README.md
@@ -9,12 +9,44 @@
+
+
+
+ + + Kimi Code Subscription + · + API Global + · + API China + + |
+
|
+ + Thanks to Kimi for sponsoring this project! Kimi K2.7 Code is an open-source, coding-focused agentic model developed by Moonshot AI, with substantial gains on real-world long-horizon coding tasks and higher end-to-end success across complex software engineering workflows. It also cuts thinking-token usage by approximately 30% compared with K2.6. Inside CCR, Kimi ships as built-in provider presets: import the pay-as-you-go API or the Kimi Code subscription in one click and route your coding agent's requests to Kimi, the subscription endpoint passes straight through natively with no protocol conversion, API endpoints are adapted automatically, and your balance and subscription usage show up right in the CCR dashboard. + ++ CCR already supports Kimi. Visit the Kimi Open Platform (中文站 | Global) to try the API, or explore the cost-effective Coding Plan. + + |
+
+
+
+
+ + + Kimi Code 订阅 + · + API 中文站 + · + API Global + + |
+
|
+ + 感谢 Kimi 赞助本项目!Kimi K2.7 Code 是 Moonshot AI 推出的编程专用开源智能体模型,在真实长程编程与复杂软件工程工作流中显著提升端到端任务成功率,同时优化推理效率,相比 K2.6 平均减少约 30% 的推理 token 消耗。在 CCR 中,Kimi 已作为内置供应商预设开箱即用:无论按量付费 API 还是 Kimi Code 订阅,一键导入即可把你的编程 Agent 请求路由到 Kimi,订阅端点原生直通、无需协议转换,API 端点自动适配,账户余额与订阅用量也能直接在 CCR 面板中查看。 + ++ CCR 已内置 Kimi 供应商预设。前往 Kimi 开放平台(中文站|Global)体验 API,或了解高性价比 Coding Plan 套餐。 + + |
+
+
+
+
+ + + Kimi Code Subscription + · + API Global + · + API China + + |
+
|
+ + Thanks to Kimi for sponsoring this project! Kimi K2.7 Code is an open-source, coding-focused agentic model developed by Moonshot AI, with substantial gains on real-world long-horizon coding tasks and higher end-to-end success across complex software engineering workflows. It also cuts thinking-token usage by approximately 30% compared with K2.6. Inside CCR, Kimi ships as built-in provider presets: import the pay-as-you-go API or the Kimi Code subscription in one click and route your coding agent's requests to Kimi, the subscription endpoint passes straight through natively with no protocol conversion, API endpoints are adapted automatically, and your balance and subscription usage show up right in the CCR dashboard. + ++ CCR already supports Kimi. Visit the Kimi Open Platform (中文站 | Global) to try the API, or explore the cost-effective Coding Plan. + + |
+
+
+
+
+ + + Kimi Code 订阅 + · + API 中文站 + · + API Global + + |
+
|
+ + 感谢 Kimi 赞助本项目!Kimi K2.7 Code 是 Moonshot AI 推出的编程专用开源智能体模型,在真实长程编程与复杂软件工程工作流中显著提升端到端任务成功率,同时优化推理效率,相比 K2.6 平均减少约 30% 的推理 token 消耗。在 CCR 中,Kimi 已作为内置供应商预设开箱即用:无论按量付费 API 还是 Kimi Code 订阅,一键导入即可把你的编程 Agent 请求路由到 Kimi,订阅端点原生直通、无需协议转换,API 端点自动适配,账户余额与订阅用量也能直接在 CCR 面板中查看。 + ++ CCR 已内置 Kimi 供应商预设。前往 Kimi 开放平台(中文站|Global)体验 API,或了解高性价比 Coding Plan 套餐。 + + |
+
+
+