diff --git a/deploy/Dockerfile b/deploy/Dockerfile index 2ccf1198..d163bdb9 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -1,7 +1,7 @@ FROM golang:1.19.3 AS build-env ADD . /src/github.com/AliyunContainerService/kube-eventer -ENV GOPATH /:/src/github.com/AliyunContainerService/kube-eventer/vendor -ENV GO111MODULE on +ENV GOPATH=/:/src/github.com/AliyunContainerService/kube-eventer/vendor +ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct WORKDIR /src/github.com/AliyunContainerService/kube-eventer RUN apt-get update -y && apt-get install gcc ca-certificates @@ -15,7 +15,7 @@ RUN apk --no-cache --update upgrade COPY --from=build-env /src/github.com/AliyunContainerService/kube-eventer/kube-eventer / COPY --from=build-env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -ENV TZ "Asia/Shanghai" +ENV TZ="Asia/Shanghai" RUN apk add --no-cache tzdata #COPY deploy/entrypoint.sh / RUN addgroup -g 1000 nonroot && \ diff --git a/deploy/Dockerfile.multi b/deploy/Dockerfile.multi index 4d43e984..e8ce2f49 100644 --- a/deploy/Dockerfile.multi +++ b/deploy/Dockerfile.multi @@ -5,8 +5,8 @@ ARG BUILDARCH ARG TARGETARCH ADD . /src/github.com/AliyunContainerService/kube-eventer -ENV GOPATH /:/src/github.com/AliyunContainerService/kube-eventer/vendor -ENV GO111MODULE on +ENV GOPATH=/:/src/github.com/AliyunContainerService/kube-eventer/vendor +ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct WORKDIR /src/github.com/AliyunContainerService/kube-eventer RUN apt-get update -y && apt-get install gcc ca-certificates @@ -24,7 +24,7 @@ RUN apk --no-cache --update upgrade COPY --from=build-env /src/github.com/AliyunContainerService/kube-eventer/kube-eventer / COPY --from=build-env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -ENV TZ "Asia/Shanghai" +ENV TZ="Asia/Shanghai" RUN apk add --no-cache tzdata #COPY deploy/entrypoint.sh / RUN addgroup -g 1000 nonroot && \