mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 02:10:00 +08:00
chore: fix goctl Dockerfile warnings (#4358)
This commit is contained in:
@@ -2,8 +2,8 @@ FROM golang:alpine AS builder
|
|||||||
|
|
||||||
LABEL stage=gobuilder
|
LABEL stage=gobuilder
|
||||||
|
|
||||||
ENV CGO_ENABLED 0
|
ENV CGO_ENABLED=0
|
||||||
ENV GOPROXY https://goproxy.cn,direct
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
|
||||||
RUN apk update --no-cache && apk add --no-cache tzdata
|
RUN apk update --no-cache && apk add --no-cache tzdata
|
||||||
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
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 /etc/passwd /etc/group /etc/
|
||||||
COPY --from=builder /usr/share/zoneinfo/ /usr/share/zoneinfo/
|
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/
|
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
|
WORKDIR /app
|
||||||
USER app
|
USER app
|
||||||
|
|||||||
Reference in New Issue
Block a user