2024-12-06 03:02:35 +00:00
|
|
|
ARG ALPINE_VERSION=3.21
|
2022-08-18 16:40:58 +00:00
|
|
|
|
|
|
|
FROM alpine:${ALPINE_VERSION}
|
|
|
|
|
|
|
|
ARG ALPINE_VERSION
|
|
|
|
|
|
|
|
RUN cd /etc/apk/keys && \
|
|
|
|
wget "https://cdn.zero-downtime.net/alpine/stefan@zero-downtime.net-61bb6bfb.rsa.pub" && \
|
|
|
|
echo "@kubezero https://cdn.zero-downtime.net/alpine/v${ALPINE_VERSION}/kubezero" >> /etc/apk/repositories && \
|
|
|
|
apk upgrade -U -a --no-cache && \
|
|
|
|
apk --no-cache add \
|
|
|
|
ca-certificates \
|
|
|
|
docker-registry@kubezero
|
|
|
|
|
2024-03-20 18:27:22 +00:00
|
|
|
USER docker-registry
|
2022-08-18 16:40:58 +00:00
|
|
|
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
CMD ["/etc/docker-registry/config.yml"]
|