From 1fe3dab80ba80f0c747111776d9f5484d7425971 Mon Sep 17 00:00:00 2001 From: AgentRun Codex Date: Thu, 16 Jul 2026 11:28:06 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20init=20=E5=9B=9E?= =?UTF-8?q?=E6=94=B6=20runner=20=E5=AD=A4=E5=84=BF=E8=BF=9B=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/container/Containerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/container/Containerfile b/deploy/container/Containerfile index a193316..4916e9c 100644 --- a/deploy/container/Containerfile +++ b/deploy/container/Containerfile @@ -12,14 +12,14 @@ ENV AGENTRUN_APP_ROOT=/workspace/agentrun ENV AGENTRUN_BOOT_REPO_URL=http://git-mirror-http.devops-infra.svc.cluster.local/pikasTech/agentrun.git RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \ - apk add --no-cache ca-certificates curl git github-cli kubectl nodejs npm openssh-client ripgrep + apk add --no-cache ca-certificates curl git github-cli kubectl nodejs npm openssh-client ripgrep tini COPY package.json bun.lock tsconfig.json ./ RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \ bun install --production RUN /opt/agentrun/node_modules/.bin/codex --version && /opt/agentrun/node_modules/.bin/codex app-server --help >/dev/null RUN set -eu; \ - for tool in bun node npm git ssh gh rg curl kubectl; do command -v "$tool" >/dev/null; done; \ + for tool in bun node npm git ssh gh rg curl kubectl tini; do command -v "$tool" >/dev/null; done; \ bun --version >/tmp/agentrun-work-ready-smoke.txt; \ node --version >>/tmp/agentrun-work-ready-smoke.txt; \ npm --version >>/tmp/agentrun-work-ready-smoke.txt; \ @@ -33,4 +33,5 @@ COPY deploy/runtime/boot ./deploy/runtime/boot RUN chmod +x /opt/agentrun/deploy/runtime/boot/*.sh EXPOSE 8080 +ENTRYPOINT ["/sbin/tini", "--"] CMD ["/opt/agentrun/deploy/runtime/boot/agentrun-mgr.sh"]