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-core-base:${harbor_base_image_version}
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2021-05-13 11:16:53 +02: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 19:13:58 +01:00
|
|
|
COPY ./make/photon/common/install_cert.sh /harbor/
|
|
|
|
COPY ./make/photon/core/entrypoint.sh /harbor/
|
2019-10-29 09:09:54 +01:00
|
|
|
COPY ./make/photon/core/harbor_core /harbor/
|
2018-09-12 08:38:29 +02:00
|
|
|
COPY ./src/core/views /harbor/views
|
2019-01-16 10:30:25 +01:00
|
|
|
COPY ./make/migrations /harbor/migrations
|
2020-08-05 10:14:36 +02:00
|
|
|
COPY ./icons /harbor/icons
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2020-03-11 19:13:58 +01:00
|
|
|
RUN chown -R harbor:harbor /etc/pki/tls/certs \
|
2020-12-17 17:30:15 +01: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 19:13:58 +01:00
|
|
|
|
2016-08-23 11:57:12 +02:00
|
|
|
WORKDIR /harbor/
|
2019-07-30 07:04:28 +02:00
|
|
|
USER harbor
|
2020-03-11 19:13:58 +01:00
|
|
|
ENTRYPOINT ["/harbor/entrypoint.sh"]
|
2020-03-03 08:22:21 +01:00
|
|
|
COPY make/photon/prepare/versions /harbor/
|