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-150" --checksum 1013e2ebbe58e5dc8f3c79fc952f020fc5306ba48463803cacfbed7779173924
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ini-file" "1.4.3-150" --checksum ef1f6d1ca9e4873f82cf5037078b55524596ca2755262948f23571767bfd4101
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "harbor-core" "2.5.3-0" --checksum b24a8165579816449b415bf9c9f53484e743ede513a913216696b5d3774f255c
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-151" --checksum 089bb11a3bc6031c5a91ab5f9534e9e7e41b928d10d72a3986f16bb61d3a9900
|
|
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" ]
|