32 lines
1.5 KiB
Docker
32 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 ca-certificates curl gzip libc6 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-registry" "2.0.0-0" --checksum 63069f23a5b70005d9cf731268b681104c77d0ace43cbf4bba987acb8987a9d9
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "3.3.0-0" --checksum 44c8d8e59396bdec54adbffd26bd98f4a0198e6fc5a280953429d14cefed0868
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-registryctl" "2.0.0-0" --checksum 59237848190990674a2c73a1005d89a18de075f38c700d5666c9556267c54ea0
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-0" --checksum 582d501eeb6b338a24f417fededbf14295903d6be55c52d66c52e616c81bcd8c
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/harbor-registryctl/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="harbor-registryctl" \
|
|
BITNAMI_IMAGE_VERSION="2.0.0-debian-10-r5" \
|
|
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" ]
|