This commit is contained in:
vipg
2026-02-10 11:01:17 +08:00
parent 8eb9adda68
commit b3ac9e8060
3 changed files with 12 additions and 3 deletions

View File

@@ -12,7 +12,8 @@ RUN cd services/user && go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /workspace/bin/user-service ./services/user
FROM alpine:3.19
RUN adduser -D -u 10001 app
RUN apk add --no-cache tzdata && adduser -D -u 10001 app
ENV TZ=Asia/Shanghai
USER app
COPY --from=builder /workspace/bin/user-service /usr/local/bin/user-service
EXPOSE 8080