mirror of
https://github.com/bitnami/containers.git
synced 2026-03-10 06:59:47 +08:00
33 lines
1.4 KiB
Docker
33 lines
1.4 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# 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 "wait-for-port" "1.0.3-152" --checksum 0694ae67645c416d9f6875e90c0f7cef379b4ac8030a6a5b8b5cc9ca77c6975d
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ini-file" "1.4.3-151" --checksum 3f23f4fff5bd0ebead5b1a59c450e7b9806198864ff9c765439df14bfb9e1cf4
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-core" "2.5.3-1" --checksum 4046ffdc12e2cf26135832bfb4a4a78e2b4c2514947aa78811f63a3e09eebbfc
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-152" --checksum 0c751c7e2ec0bc900a19dbec0306d6294fe744ddfb0fa64197ba1a36040092f0
|
|
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-core/postunpack.sh
|
|
ENV APP_VERSION="2.5.3" \
|
|
BITNAMI_APP_NAME="harbor-core" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/harbor-core/bin:$PATH"
|
|
|
|
VOLUME [ "/data", "/etc/core" ]
|
|
|
|
EXPOSE 8080
|
|
|
|
WORKDIR /opt/bitnami/harbor-core
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/harbor-core/entrypoint.sh" ]
|
|
CMD [ "harbor_core" ]
|