prod: sync production fixes - agent lifecycle, docker fallback, compose hardening

This commit is contained in:
bboxwtf
2026-05-06 19:45:16 +00:00
parent f8e0ca7d5d
commit 633fc48663
16 changed files with 334 additions and 42 deletions

View File

@@ -18,10 +18,22 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
./cmd/agent-worker
# ─── Stage 2: Runtime ──────────────────────────────────────────────────────────
# Минимальный образ: только бинарь + CA certs (для HTTPS к LLM API)
FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata
# Runtime tools needed by the agent's tool executor:
# bash — shell_exec uses bash -c (falls back to sh)
# curl — http_request + docker socket API fallback in docker_exec
# wget — healthcheck
# jq — JSON processing in shell scripts
# python3 — docker_exec socket fallback (docker ps via API)
RUN apk add --no-cache \
ca-certificates \
tzdata \
bash \
curl \
wget \
jq \
python3
WORKDIR /app