From e83413685176755d9540ffafa48bccd1877383ed Mon Sep 17 00:00:00 2001 From: kmova Date: Wed, 23 Dec 2020 17:45:57 +0000 Subject: [PATCH] set Dockerfile to build from distroless Signed-off-by: kmova --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 287549bd..2aba5953 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,11 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM alpine +FROM gcr.io/distroless/static:latest LABEL maintainers="Kubernetes Authors" LABEL description="NFS subdir external provisioner" ARG binary=./bin/nfs-subdir-external-provisioner -RUN apk update --no-cache && apk add ca-certificates COPY ${binary} /nfs-subdir-external-provisioner ENTRYPOINT ["/nfs-subdir-external-provisioner"]