harbor/make/photon/registry/Dockerfile

19 lines
424 B
Docker
Raw Normal View History

FROM library/photon:1.0
MAINTAINER wangyan@vmware.com
# The original script in the docker offical registry image.
COPY entrypoint.sh /
RUN chmod u+x /entrypoint.sh
RUN mkdir -p /etc/docker/registry
COPY config.yml /etc/docker/registry/config.yml
2017-07-24 12:21:38 +02:00
COPY binary/registry /usr/bin
RUN chmod u+x /usr/bin/registry
VOLUME ["/var/lib/registry"]
EXPOSE 5000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/etc/docker/registry/config.yml"]