Skip to content

Commit a79f5e8

Browse files
authored
fix(build): add missing kimi stage to Dockerfile.package (#1432)
PR #1429 added the kimi agent to Dockerfile.unified and to the pre-beta workflow's ALL_AGENTS, but Dockerfile.package (used by pre-beta-build.yml) never got the stage. Every pre-beta run since then fails both kimi build jobs with 'target stage "kimi" could not be found', so ghcr.io/openabdev/openab:pre-beta-kimi was never published. Ports the kimi stage verbatim from Dockerfile.unified, adapted to the package pattern (COPY --from=bins instead of the builder stage). Fixes the failed kimi jobs in runs 29776844194, 29791564121, 29830138174. Co-authored-by: chaodu-agent <274062505+chaodu-agent@users.noreply.github.com>
1 parent 3ac3e31 commit a79f5e8

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Dockerfile.package

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,33 @@ ENV OPENAB_AGENT_AUTH_COMMAND="codex login --device-auth"
114114
ENTRYPOINT ["tini", "--"]
115115
CMD ["openab", "run", "-c", "/etc/openab/config.toml"]
116116

117+
# =============================================================================
118+
# Target: kimi
119+
# =============================================================================
120+
FROM node:24-trixie-slim AS kimi
121+
RUN apt-get update && apt-get install -y --no-install-recommends \
122+
ca-certificates curl procps ripgrep tini bubblewrap socat unzip git \
123+
&& rm -rf /var/lib/apt/lists/*
124+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
125+
-o /usr/share/keyrings/githubcli-archive-keyring.gpg && \
126+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
127+
> /etc/apt/sources.list.d/github-cli.list && \
128+
apt-get update && apt-get install -y --no-install-recommends gh && \
129+
rm -rf /var/lib/apt/lists/*
130+
ARG KIMI_CODE_VERSION=0.28.1
131+
RUN npm install -g @moonshot-ai/kimi-code@${KIMI_CODE_VERSION} --retry 3
132+
ENV HOME=/home/node
133+
WORKDIR /home/node
134+
COPY --from=bins --chown=node:node /openab /usr/local/bin/openab
135+
RUN mkdir -p /home/node/.kimi-code && chown -R node:node /home/node
136+
USER node
137+
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
138+
CMD pgrep -x openab || exit 1
139+
ENV OPENAB_AGENT_COMMAND="kimi acp"
140+
ENV OPENAB_AGENT_AUTH_COMMAND="kimi"
141+
ENTRYPOINT ["tini", "--"]
142+
CMD ["openab", "run", "-c", "/etc/openab/config.toml"]
143+
117144
# =============================================================================
118145
# Target: copilot
119146
# =============================================================================

0 commit comments

Comments
 (0)