FROM golang:1.24-alpine AS builder WORKDIR /app COPY go.mod . COPY go.sum . RUN GOPROXY="https://goproxy.cn,direct" go mod download COPY . . RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o modelrt main.go FROM alpine:latest WORKDIR /app COPY --from=builder /app/modelrt ./modelrt COPY configs/config.example.yaml ./configs/config.example.yaml RUN chmod +x /app/modelrt CMD ["/app/modelrt"]