mirror of
https://github.com/bitnami/containers.git
synced 2026-03-18 15:27:52 +08:00
34 lines
1.6 KiB
Docker
34 lines
1.6 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.4.2-0" --checksum 348925b4645f2aeffc2d89ae0ceb26d185912bef20da4130412f65cdcec22fa2
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.23.1-0" --checksum 3acde09539f8ab299ae8d0cde49f0d11cddb1a6f09a3b492b63a6b15bf2092bc
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-registryctl" "2.4.2-0" --checksum 8bb06437a5aaf7d0a61fce5bd14410f7c0d57138e5afbe60b5ec9b85c3f10cd2
|
|
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.4.2" \
|
|
BITNAMI_APP_NAME="harbor-registryctl" \
|
|
BITNAMI_IMAGE_VERSION="2.4.2-debian-10-r6" \
|
|
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" ]
|