构建镜像

This commit is contained in:
Rzy 2024-06-20 14:14:34 +08:00
parent 076bb9a974
commit 34d7db41ee
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM renzhiyuan123/go-zero1.21.11:base AS builder FROM registry.cn-chengdu.aliyuncs.com/go_ls/go-zero:v1 AS builder
LABEL stage=gobuilder LABEL stage=gobuilder
@ -11,7 +11,7 @@ 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/transfer cmd/rpc/transfer.go
RUN go build -ldflags="-s -w" -o /src/cmd/rpc/queue/queue cmd/rpc/queue/queue.go RUN go build -ldflags="-s -w" -o /src/cmd/rpc/queue/queue cmd/rpc/queue/queue.go
FROM registry.cn-chengdu.aliyuncs.com/go_ls/go-zero:v1 AS runtime FROM registry.cn-chengdu.aliyuncs.com/go_ls/alpha:v1 AS runtime
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /src /src COPY --from=builder /src /src
@ -24,4 +24,4 @@ ADD ./sh/supervisord.conf /etc/supervisord.conf
WORKDIR /src WORKDIR /src
EXPOSE 10001 EXPOSE 10001
#CMD ["sh","/opt/startup.sh"] CMD ["sh","/opt/startup.sh"]