2018-09-14 18:11:38 +02:00
|
|
|
FROM r.j3ss.co/reg as reg
|
2018-06-14 21:30:04 +02:00
|
|
|
FROM jess/gcloud
|
2016-09-21 18:17:38 +02:00
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
ca-certificates \
|
2016-09-22 03:25:50 +02:00
|
|
|
bash \
|
2018-06-14 21:30:04 +02:00
|
|
|
parallel
|
2016-09-21 18:17:38 +02:00
|
|
|
|
|
|
|
# Install google cloud sdk
|
|
|
|
# Download clean-registry script
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
curl \
|
2016-09-30 19:47:34 +02:00
|
|
|
&& curl -sSL -o /usr/bin/clean-registry https://raw.githubusercontent.com/jessfraz/dotfiles/master/bin/clean-registry \
|
2016-09-21 18:17:38 +02:00
|
|
|
&& chmod +x /usr/bin/clean-registry \
|
|
|
|
&& apk del .build-deps
|
|
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
2018-09-14 18:11:38 +02:00
|
|
|
COPY --from=reg /usr/bin/reg /usr/bin/reg
|
2016-09-21 18:17:38 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["clean-registry"]
|