33 lines
1.5 KiB
Docker
33 lines
1.5 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libc6 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-registry" "2.5.1-0" --checksum cf5898d8716e017fd37f99ff94fe9a0d1b61f11badfcce17d9828237e6b76e91
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.25.2-0" --checksum 3f8882ec1dcc0e9b50cdc848fb6e7bed7f0dd80caeef72d33c2209e9e80c2a9f
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-registryctl" "2.5.1-0" --checksum 8fc4342dff0859d06c6f88c6d38cb70282f53bae6d5f5fac87420fc944de9a57
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/harbor-registryctl/postunpack.sh
|
|
ENV APP_VERSION="2.5.1" \
|
|
BITNAMI_APP_NAME="harbor-registryctl" \
|
|
PATH="/opt/bitnami/harbor-registry/bin:/opt/bitnami/common/bin:/opt/bitnami/harbor-registryctl/bin:$PATH"
|
|
|
|
VOLUME [ "/etc/registry", "/etc/registryctl", "/storage", "/var/lib/registry" ]
|
|
|
|
EXPOSE 8080 8443
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/harbor-registryctl/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/harbor-registryctl/run.sh" ]
|