Files
ghbot/Dockerfile.webhook
wdawdwaandClaude Opus 4.8 039acabd96 fix: production hardening for merge races, timeouts, and webhook ops
Pin merge SHA, lock conflict repair, bound subprocess/proxy output,
fail-fast incomplete R2/webhook config, redact validation/stderr
secrets, and document that webhook 202 is best-effort after ACK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-23 15:44:08 +08:00

25 lines
708 B
Docker

FROM node:24-bookworm
ARG GOOSE_VERSION=v1.46.0
ENV GOOSE_VERSION=${GOOSE_VERSION} \
GOOSE_BIN_DIR=/usr/local/bin \
CONFIGURE=false \
NODE_ENV=production
RUN apt-get update \
&& apt-get install --no-install-recommends -y bash ca-certificates curl \
&& rm -rf /var/lib/apt/lists/* \
&& curl -fsSL "https://github.com/aaif-goose/goose/releases/download/${GOOSE_VERSION}/download_cli.sh" | bash
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY tsconfig.json ./
COPY src ./src
RUN npm run build && npm prune --omit=dev
# This image is the webhook service. Action mode does not use it.
ENV WEBHOOK_ENABLED=true
EXPOSE 3000
CMD ["node", "dist/src/webhook/server.js"]