update clean-registry

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-14 12:11:38 -04:00
parent 940dfe95e6
commit 4273797fea
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -1,3 +1,4 @@
FROM r.j3ss.co/reg as reg
FROM jess/gcloud FROM jess/gcloud
RUN apk add --no-cache \ RUN apk add --no-cache \
@ -15,20 +16,7 @@ RUN set -x \
&& apk del .build-deps && apk del .build-deps
WORKDIR /root WORKDIR /root
ENV GOPATH /go
# Install reg COPY --from=reg /usr/bin/reg /usr/bin/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."
ENTRYPOINT ["clean-registry"] ENTRYPOINT ["clean-registry"]