2017-10-30 04:06:48 +01:00
|
|
|
FROM vmware/photon:1.0
|
2017-07-24 11:19:32 +02:00
|
|
|
|
|
|
|
MAINTAINER wangyan@vmware.com
|
|
|
|
|
|
|
|
# The original script in the docker offical registry image.
|
2017-10-30 04:06:48 +01:00
|
|
|
RUN tdnf distro-sync -y \
|
|
|
|
&& tdnf erase vim -y \
|
|
|
|
&& tdnf clean all
|
2017-07-24 11:19:32 +02:00
|
|
|
COPY entrypoint.sh /
|
|
|
|
RUN chmod u+x /entrypoint.sh
|
|
|
|
|
2017-08-30 10:13:54 +02:00
|
|
|
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
|
2017-07-24 11:19:32 +02:00
|
|
|
RUN chmod u+x /usr/bin/registry
|
|
|
|
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["/etc/docker/registry/config.yml"]
|