feat: 添加多语言客户端 Docker 支持

- 新增 .NET 客户端 SDK 和 demo 项目
- 添加 Go/Node.js/Python/.NET/SpringBoot2 的 Dockerfile
- Go demo 支持从环境变量读取配置
- 创建 README_DOCKERFILE.md 文档说明 Docker 使用方法
- 更新根目录 README.md 标记 .NET 客户端为已支持
This commit is contained in:
2026-06-14 21:07:35 +08:00
parent 18b8c4c18b
commit 82523b9236
19 changed files with 820 additions and 11 deletions
+25
View File
@@ -0,0 +1,25 @@
# Build stage
FROM golang:1.25-alpine AS build
# 设置国内 Go 代理
ENV GOPROXY=https://goproxy.cn,direct
WORKDIR /src
# Copy client library
COPY kenaito-conf-go-client/ ./kenaito-conf-go-client/
# Copy demo project
COPY kenaito-conf-go-client-demo/ ./kenaito-conf-go-client-demo/
# Build
WORKDIR /src/kenaito-conf-go-client-demo
RUN go mod tidy && go build -o /app/demo .
# Runtime stage
FROM alpine:3.20
WORKDIR /app
COPY --from=build /app/demo .
ENTRYPOINT ["./demo"]