1
0
mirror of https://github.com/distribution/distribution-library-image synced 2024-11-12 05:15:50 +01:00
distribution-library-image/s390x/Dockerfile
CrazyMax 9f08503b36
Update registry to 2.8.0-beta.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-01-20 08:27:36 +01:00

20 lines
561 B
Docker

FROM alpine:3.14 AS download
RUN apk add --no-cache tar wget
WORKDIR /out
RUN wget -qO- https://github.com/distribution/distribution/releases/download/v2.8.0-beta.1/registry_2.8.0-beta.1_linux_s390x.tar.gz | tar -zxvf - registry
FROM alpine:3.14
RUN set -ex && apk add --no-cache ca-certificates
COPY --from=download /out/registry /bin/registry
COPY ./config-example.yml /etc/docker/registry/config.yml
VOLUME ["/var/lib/registry"]
EXPOSE 5000
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/etc/docker/registry/config.yml"]