Fix harness: add ca-certificates, make opencode install non-fatal
Some checks failed
CI / lint-and-test (push) Successful in 17s
CI / build (push) Failing after 3m38s

This commit is contained in:
Julia McGhee
2026-03-21 18:04:44 +00:00
parent adaff14c36
commit d7f0931fa6

View File

@@ -17,11 +17,12 @@ WORKDIR /app
ENV NODE_ENV=production
# System tools needed by agent executors
RUN apk add --no-cache git github-cli curl
RUN apk add --no-cache git github-cli curl ca-certificates
# Agent CLIs (installed globally before dropping to non-root)
RUN npm install -g @anthropic-ai/claude-code @openai/codex \
&& curl -fsSL https://opencode.ai/install | sh
RUN npm install -g @anthropic-ai/claude-code @openai/codex
RUN curl -fsSL https://opencode.ai/install | sh || \
echo "WARN: opencode install failed, skipping"
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs