2019-11-12 03:20:54 +00:00
|
|
|
ARG harbor_base_image_version
|
2020-04-01 11:46:45 +00:00
|
|
|
ARG harbor_base_namespace
|
|
|
|
FROM ${harbor_base_namespace}/harbor-core-base:${harbor_base_image_version}
|
2016-08-23 09:57:12 +00:00
|
|
|
|
2021-05-13 09:16:53 +00:00
|
|
|
HEALTHCHECK CMD curl --fail -s http://localhost:8080/api/v2.0/ping || curl -k --fail -s https://localhost:8443/api/v2.0/ping || exit 1
|
2020-03-11 18:13:58 +00:00
|
|
|
COPY ./make/photon/common/install_cert.sh /harbor/
|
|
|
|
COPY ./make/photon/core/entrypoint.sh /harbor/
|
2019-10-29 08:09:54 +00:00
|
|
|
COPY ./make/photon/core/harbor_core /harbor/
|
2018-09-12 06:38:29 +00:00
|
|
|
COPY ./src/core/views /harbor/views
|
2019-01-16 09:30:25 +00:00
|
|
|
COPY ./make/migrations /harbor/migrations
|
2020-08-05 08:14:36 +00:00
|
|
|
COPY ./icons /harbor/icons
|
2016-08-23 09:57:12 +00:00
|
|
|
|
2020-03-11 18:13:58 +00:00
|
|
|
RUN chown -R harbor:harbor /etc/pki/tls/certs \
|
2020-12-17 16:30:15 +00:00
|
|
|
&& chown -R harbor:harbor /harbor/ \
|
|
|
|
&& chmod u+x /harbor/entrypoint.sh \
|
|
|
|
&& chmod u+x /harbor/install_cert.sh \
|
|
|
|
&& chmod u+x /harbor/harbor_core
|
2020-03-11 18:13:58 +00:00
|
|
|
|
2016-08-23 09:57:12 +00:00
|
|
|
WORKDIR /harbor/
|
2019-07-30 05:04:28 +00:00
|
|
|
USER harbor
|
2020-03-11 18:13:58 +00:00
|
|
|
ENTRYPOINT ["/harbor/entrypoint.sh"]
|
2020-03-03 07:22:21 +00:00
|
|
|
COPY make/photon/prepare/versions /harbor/
|