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-12-20 06:10:32 +01:00
|
|
|
RUN tdnf distro-sync -y \
|
2017-10-30 04:06:48 +01:00
|
|
|
&& tdnf erase vim -y \
|
2018-02-27 08:01:14 +01:00
|
|
|
&& tdnf install sudo -y >> /dev/null\
|
2017-11-02 04:51:32 +01:00
|
|
|
&& tdnf clean all \
|
|
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
|
|
|
|
2017-07-24 11:19:32 +02:00
|
|
|
COPY entrypoint.sh /
|
|
|
|
RUN chmod u+x /entrypoint.sh
|
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
RUN mkdir -p /etc/registry
|
2017-08-30 10:13:54 +02:00
|
|
|
|
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
|
|
|
|
|
2017-11-02 04:51:32 +01:00
|
|
|
HEALTHCHECK CMD curl 127.0.0.1:5000/
|
|
|
|
|
2017-07-24 11:19:32 +02:00
|
|
|
VOLUME ["/var/lib/registry"]
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
2017-11-02 04:51:32 +01:00
|
|
|
CMD ["/etc/registry/config.yml"]
|