diff --git a/app/main/api/Dockerfile b/app/main/api/Dockerfile index 12f447e..61a16dd 100644 --- a/app/main/api/Dockerfile +++ b/app/main/api/Dockerfile @@ -2,8 +2,8 @@ FROM golang:1.23.4-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 sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories RUN apk update --no-cache && apk add --no-cache tzdata @@ -23,7 +23,7 @@ FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai -ENV TZ Asia/Shanghai +ENV TZ=Asia/Shanghai WORKDIR /app COPY --from=builder /app/main /app/main