From 3f03126d275944e3ef9e5f9ca2a8c4344b5d96a9 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Thu, 5 Sep 2024 22:13:01 +0800 Subject: [PATCH] chore: fix goctl Dockerfile warnings (#4358) --- tools/goctl/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/goctl/Dockerfile b/tools/goctl/Dockerfile index 37e990ae..adae6659 100644 --- a/tools/goctl/Dockerfile +++ b/tools/goctl/Dockerfile @@ -2,8 +2,8 @@ FROM golang:alpine AS builder LABEL stage=gobuilder -ENV CGO_ENABLED 0 -ENV GOPROXY https://goproxy.cn,direct +ENV CGO_ENABLED=0 +ENV GOPROXY=https://goproxy.cn,direct RUN apk update --no-cache && apk add --no-cache tzdata RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest @@ -24,7 +24,7 @@ RUN apk update --no-cache && apk add --no-cache protoc COPY --from=builder /etc/passwd /etc/group /etc/ COPY --from=builder /usr/share/zoneinfo/ /usr/share/zoneinfo/ COPY --from=builder --chown=1000:1000 /go/bin/protoc-gen-go* /app/goctl /usr/local/bin/ -ENV TZ Asia/Shanghai +ENV TZ=Asia/Shanghai WORKDIR /app USER app