Express service that authenticates Gitea deliveries, verifies the HMAC signature, builds a readable text summary for push/pull_request events, and forwards it to the Anthropic routines API with the headers Gitea can't set itself. Includes in-memory delivery dedup, structured logging, .env.example, and a Dockerfile for deployment behind nginx. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
16 lines
186 B
Docker
16 lines
186 B
Docker
FROM node:18-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm install --omit=dev
|
|
|
|
COPY server.js ./
|
|
|
|
ENV PORT=3000
|
|
EXPOSE 3000
|
|
|
|
USER node
|
|
|
|
CMD ["node", "server.js"]
|