feat: cc-hook v1.0 - Claude Code 钩子服务

- Go HTTP 服务,监听 :8082
- 支持 Notification 和 Stop 事件
- 转发至 Gotify 推送通知
- Docker 多阶段构建
- 环境变量配置
- 详细中文 README 文档
This commit is contained in:
2026-06-21 21:49:51 +08:00
parent 5187739a61
commit 2566f9f4aa
8 changed files with 396 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod ./
COPY *.go ./
RUN go build -o cc-hook .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /app/cc-hook /usr/local/bin/
EXPOSE 8082
CMD ["cc-hook"]