29 lines
1.1 KiB
Docker
29 lines
1.1 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 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-registry" "2.2.0-0" --checksum ffc4affb8e2dc48d227de95d04b16b171cfa671fb38e7047fb4730ffe71a3162
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-2" --checksum 4d858ac600c38af8de454c27b7f65c0074ec3069880cb16d259a6e40a46bbc50
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/harbor-registry/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="harbor-registry" \
|
|
BITNAMI_IMAGE_VERSION="2.2.0-debian-10-r30" \
|
|
PATH="/opt/bitnami/harbor-registry/bin:/opt/bitnami/common/bin:$PATH"
|
|
|
|
VOLUME [ "/etc/registry", "/storage", "/var/lib/registry" ]
|
|
|
|
EXPOSE 5000
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/harbor-registry/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/harbor-registry/run.sh" ]
|