修复:为 user-svc 添加健康检查和启动顺序控制

This commit is contained in:
fish
2026-03-28 21:54:09 +08:00
parent 5ac0a52bb1
commit c5260bcae8
31 changed files with 1995 additions and 167 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.26.1-alpine3.23
FROM golang:1.25.8-alpine3.23
# 安装 protoc 和相关工具
RUN apk add --no-cache protobuf-dev
@@ -11,4 +11,4 @@ RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
WORKDIR /proto
# 生成 proto 文件的命令
CMD protoc --go_out=. --go-grpc_out=. common/*.proto
CMD protoc --go_out=. --go-grpc_out=. shared/proto/common/*.proto shared/proto/user/*.proto