ARG BASE_IMAGE # https://gallery.ecr.aws/eks-distro-build-tooling/eks-distro-base FROM $BASE_IMAGE ARG RELEASE_BRANCH ARG TARGETARCH ARG TARGETOS COPY _output/$RELEASE_BRANCH/dependencies/$TARGETOS-$TARGETARCH/eksa/distribution/distribution/registry _output/harbor-registry/ _output/LICENSES ATTRIBUTION.txt / RUN yum install -y shadow-utils >> /dev/null \ && yum clean all \ && mkdir -p /etc/registry \ && groupadd -f -r -g 10000 harbor && useradd --no-log-init -m -g 10000 -u 10000 harbor \ && yum erase -y shadow-utils \ && mv /registry /usr/bin/registry_DO_NOT_USE_GC \ && chown -R harbor:harbor /etc/pki/tls/certs /home/harbor /usr/bin/registry_DO_NOT_USE_GC \ && chmod u+x /home/harbor/entrypoint.sh \ && chmod u+x /home/harbor/install_cert.sh \ && chmod u+x /usr/bin/registry_DO_NOT_USE_GC HEALTHCHECK CMD curl --fail -s http://localhost:5000 || curl -k --fail -s https://localhost:5443 || exit 1 USER harbor ENTRYPOINT ["/home/harbor/entrypoint.sh"] VOLUME ["/storage"]