From fbf1cdb2e01c54387d1382c7ae2b23113b852330 Mon Sep 17 00:00:00 2001 From: Rzy <465386466@qq.com> Date: Thu, 20 Jun 2024 14:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 919e64b..9f0def0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.10-alpine AS builder +FROM renzhiyuan123/go-zero1.21.11:base AS builder LABEL stage=gobuilder @@ -11,12 +11,8 @@ RUN go mod download RUN go build -ldflags="-s -w" -o /src/cmd/rpc/transfer cmd/rpc/transfer.go RUN go build -ldflags="-s -w" -o /src/cmd/rpc/queue/queue cmd/rpc/queue/queue.go -FROM alpine:latest AS runtime -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories -RUN apk update && apk add supervisor -RUN apk add make +FROM registry.cn-chengdu.aliyuncs.com/go_ls/go-zero:v1 AS runtime -ENV TZ Asia/Shanghai COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /src /src @@ -28,4 +24,4 @@ ADD ./sh/supervisord.conf /etc/supervisord.conf WORKDIR /src EXPOSE 10001 -#CMD ["sh","/opt/startup.sh"] \ No newline at end of file +CMD ["sh","/opt/startup.sh"] \ No newline at end of file