2019-11-12 04:20:54 +01:00
|
|
|
ARG harbor_base_image_version
|
2020-04-01 13:46:45 +02:00
|
|
|
ARG harbor_base_namespace
|
|
|
|
FROM ${harbor_base_namespace}/harbor-registry-base:${harbor_base_image_version}
|
2018-11-09 08:02:59 +01:00
|
|
|
|
2019-10-13 12:27:06 +02:00
|
|
|
COPY ./make/photon/common/install_cert.sh /home/harbor
|
|
|
|
COPY ./make/photon/registry/entrypoint.sh /home/harbor
|
2020-04-14 09:16:47 +02:00
|
|
|
COPY ./make/photon/registry/binary/registry /usr/bin/registry_DO_NOT_USE_GC
|
2019-05-05 09:24:52 +02:00
|
|
|
|
2019-10-22 15:24:49 +02:00
|
|
|
RUN chown -R harbor:harbor /etc/pki/tls/certs \
|
2019-10-13 12:27:06 +02:00
|
|
|
&& chown harbor:harbor /home/harbor/entrypoint.sh && chmod u+x /home/harbor/entrypoint.sh \
|
|
|
|
&& chown harbor:harbor /home/harbor/install_cert.sh && chmod u+x /home/harbor/install_cert.sh \
|
2020-04-14 09:16:47 +02:00
|
|
|
&& chown harbor:harbor /usr/bin/registry_DO_NOT_USE_GC && chmod u+x /usr/bin/registry_DO_NOT_USE_GC
|
2017-07-24 11:19:32 +02:00
|
|
|
|
2020-04-04 19:43:12 +02:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:5000 || curl -k --fail -s https://127.0.0.1:5443 || exit 1
|
2017-11-02 04:51:32 +01:00
|
|
|
|
2019-10-13 12:27:06 +02:00
|
|
|
USER harbor
|
|
|
|
|
|
|
|
ENTRYPOINT ["/home/harbor/entrypoint.sh"]
|
|
|
|
|
2019-12-11 12:11:20 +01:00
|
|
|
VOLUME ["/storage"]
|
2017-07-24 11:19:32 +02:00
|
|
|
EXPOSE 5000
|