M0:神识 Go 网关骨架(IR 入站/SSE 出站/stub 适配器/服务令牌/健康检查)及测试与镜像
This commit is contained in:
1 parent
7ef3a15061
commit
f3058a64c3
10 files changed
+514
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# 神识(Go 模型网关)构建与运行
|
||||
FROM golang:1.25-alpine AS builder
|
||||
WORKDIR /src
|
||||
COPY go.mod ./
|
||||
RUN go mod download || true
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/shenshi .
|
||||
|
||||
FROM alpine:3.20
|
||||
RUN adduser -D -H -u 10001 shenshi
|
||||
USER shenshi
|
||||
COPY --from=builder /out/shenshi /usr/local/bin/shenshi
|
||||
ENV SHENSHI_PORT=8080
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["shenshi"]
|
||||
Reference in new issue
Block a user