mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-09 20:21:53 +01:00
b1ddb5e2cc
Implement the icon API to get the icon of artifact Signed-off-by: Wenkai Yin <yinw@vmware.com>
22 lines
931 B
Docker
22 lines
931 B
Docker
ARG harbor_base_image_version
|
|
ARG harbor_base_namespace
|
|
FROM ${harbor_base_namespace}/harbor-core-base:${harbor_base_image_version}
|
|
|
|
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080/api/v2.0/ping || curl -k --fail -s https://127.0.0.1:8443/api/v2.0/ping || exit 1
|
|
COPY ./make/photon/common/install_cert.sh /harbor/
|
|
COPY ./make/photon/core/entrypoint.sh /harbor/
|
|
COPY ./make/photon/core/harbor_core /harbor/
|
|
COPY ./src/core/views /harbor/views
|
|
COPY ./make/migrations /harbor/migrations
|
|
COPY ./icons /harbor/icons
|
|
|
|
RUN chown -R harbor:harbor /etc/pki/tls/certs \
|
|
&& chown harbor:harbor /harbor/entrypoint.sh && chmod u+x /harbor/entrypoint.sh \
|
|
&& chown harbor:harbor /harbor/install_cert.sh && chmod u+x /harbor/install_cert.sh \
|
|
&& chown harbor:harbor /harbor/harbor_core && chmod u+x /harbor/harbor_core
|
|
|
|
WORKDIR /harbor/
|
|
USER harbor
|
|
ENTRYPOINT ["/harbor/entrypoint.sh"]
|
|
COPY make/photon/prepare/versions /harbor/
|