diff --git a/Dockerfile b/Dockerfile index 1c97e8a493..3ae4ec813a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,11 +36,14 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o /usr/bin FROM ${SPARK_IMAGE} USER root -COPY --from=builder /usr/bin/spark-operator /usr/bin/ RUN apt-get update --allow-releaseinfo-change \ && apt-get update \ && apt-get install -y openssl curl tini \ && rm -rf /var/lib/apt/lists/* + +USER 185 + +COPY --from=builder /usr/bin/spark-operator /usr/bin/ COPY hack/gencerts.sh /usr/bin/ COPY entrypoint.sh /usr/bin/