docker-distribution/Dockerfile
Randy Barlow ef3b1ca21b Use the correct dnf syntax to install a specific package version.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
2017-07-05 17:39:00 -04:00

16 lines
489 B
Docker

FROM registry.fedoraproject.org/fedora:26
MAINTAINER "Randy Barlow" <bowlofeggs@fedoraproject.org>
ENV NAME=docker-distribution VERSION=2.5.1 RELEASE=1 ARCH=x86_64
LABEL BZComponent="$NAME" \
Name="$FGC/$NAME" \
Version="$VERSION" \
Release="$RELEASE.$DISTTAG" \
Architecture="$ARCH"
RUN dnf install -y docker-distribution-2.5.1 && dnf clean all
VOLUME ["/var/lib/registry"]
EXPOSE 5000
ENTRYPOINT ["/usr/bin/registry"]
CMD ["serve", "/etc/docker-distribution/registry/config.yml"]