mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
update clean-registry
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
940dfe95e6
commit
4273797fea
|
@ -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"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user