This commit is contained in:
fish
2026-03-28 19:40:04 +08:00
parent 28af154df4
commit 4b3e40afab
24 changed files with 0 additions and 2393 deletions

View File

@@ -1,21 +0,0 @@
FROM golang:1.26.1-alpine3.23 AS builder
WORKDIR /app
ENV GOPROXY=https://goproxy.cn,direct
COPY go.mod ./
COPY main.go ./
RUN go mod download
RUN go build -o user-svc main.go
FROM alpine:3.23
WORKDIR /app
COPY --from=builder /app/user-svc .
EXPOSE 50051
CMD ["./user-svc"]