From 4273797fead3d53530f3ab9ba32487b26813a70d Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Fri, 14 Sep 2018 12:11:38 -0400 Subject: [PATCH] update clean-registry Signed-off-by: Jess Frazelle --- clean-registry/Dockerfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/clean-registry/Dockerfile b/clean-registry/Dockerfile index c51f65d..0598504 100644 --- a/clean-registry/Dockerfile +++ b/clean-registry/Dockerfile @@ -1,3 +1,4 @@ +FROM r.j3ss.co/reg as reg FROM jess/gcloud RUN apk add --no-cache \ @@ -15,20 +16,7 @@ RUN set -x \ && apk del .build-deps WORKDIR /root -ENV GOPATH /go -# Install reg -RUN set -x \ - && apk add --no-cache --virtual .build-deps \ - go \ - git \ - gcc \ - libc-dev \ - libgcc \ - && go get github.com/genuinetools/reg \ - && mv ${GOPATH}/bin/reg /usr/bin/reg \ - && apk del .build-deps \ - && rm -rf /go \ - && echo "Build complete." +COPY --from=reg /usr/bin/reg /usr/bin/reg ENTRYPOINT ["clean-registry"]