Renovate Bot
0e1f0e9a08
Some checks failed
ZeroDownTime/docker-repository/pipeline/pr-main There was a failure building this commit
24 lines
608 B
Docker
24 lines
608 B
Docker
ARG ALPINE_VERSION=3.21
|
|
|
|
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
|
|
|
|
USER docker-registry
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
EXPOSE 5000
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["/etc/docker-registry/config.yml"]
|