mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 12:46:03 +01:00
0a72f3729a
Signed-off-by: stonezdj <stonezdj@gmail.com>
27 lines
669 B
Docker
27 lines
669 B
Docker
FROM photon:2.0
|
|
|
|
MAINTAINER wangyan@vmware.com
|
|
|
|
# The original script in the docker offical registry image.
|
|
RUN tdnf install sudo -y >> /dev/null\
|
|
&& tdnf clean all \
|
|
&& mkdir /harbor/ \
|
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
|
|
|
COPY ./make/photon/common/install_cert.sh /harbor
|
|
|
|
COPY ./make/photon/registry/entrypoint.sh /
|
|
RUN chmod u+x /entrypoint.sh
|
|
|
|
RUN mkdir -p /etc/registry
|
|
|
|
COPY ./make/photon/registry/binary/registry /usr/bin
|
|
RUN chmod u+x /usr/bin/registry
|
|
|
|
HEALTHCHECK CMD curl 127.0.0.1:5000/
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["/etc/registry/config.yml"]
|