| ADD photon-rootfs-5.0-eb39da49f.x86_64.tar.gz / # buildkit |
| LABEL name=Photon OS x86_64/5.0 Base Image vendor=VMware build-date=20260214 |
| CMD ["/bin/bash"] |
| RUN /bin/sh -c tdnf install -y tzdata shadow >> /dev/null && tdnf clean all && groupadd -r -g 10000 harbor && useradd --no-log-init -r -m -g 10000 -u 10000 harbor && mkdir /harbor/ # buildkit |
| HEALTHCHECK &{["CMD-SHELL" "curl --fail -s http://localhost:8080/api/v2.0/ping || curl -k --fail -s https://localhost:8443/api/v2.0/ping || exit 1"] "0s" "0s" "0s" "0s" '\x00'} |
| COPY ./make/photon/common/install_cert.sh /harbor/ # buildkit |
| COPY ./make/photon/core/entrypoint.sh /harbor/ # buildkit |
| COPY ./make/photon/core/harbor_core /harbor/ # buildkit |
| COPY ./src/core/views /harbor/views # buildkit |
| COPY ./make/migrations /harbor/migrations # buildkit |
| COPY ./icons /harbor/icons # buildkit |
| RUN /bin/sh -c chown -R harbor:harbor /etc/pki/tls/certs && chown -R harbor:harbor /harbor/ && chmod u+x /harbor/entrypoint.sh && chmod u+x /harbor/install_cert.sh && chmod u+x /harbor/harbor_core # buildkit |
| WORKDIR /harbor/ |
| USER harbor |
| ENTRYPOINT ["/harbor/entrypoint.sh"] |
| COPY make/photon/prepare/versions /harbor/ # buildkit |