Skip to content

Commit

Permalink
chore: fix goctl Dockerfile warnings (#4358)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Sep 5, 2024
1 parent d43adc2 commit 3f03126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/goctl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3f03126

Please sign in to comment.