bitnami-containers/bitnami/harbor-portal/1/debian-9/Dockerfile

35 lines
1.2 KiB
Docker

FROM bitnami/minideb-extras-base:stretch-r348
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
HOME="/" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-9" \
OS_NAME="linux"
# Install required system packages and dependencies
RUN install_packages libc6 libgeoip1 libpcre3 libssl1.1 zlib1g
RUN . ./libcomponent.sh && component_unpack "nginx" "1.16.1-0" --checksum 9beea2a7aa9a47c4b52067916bf19b0fd4695c89a2bd538d6d67a4e354f5334a
RUN . ./libcomponent.sh && component_unpack "harbor" "1.8.2-0" --checksum 8bbd125a658fa7809d61d8a5634ce20a2639ec49b90b3d1937abe3c38b973d38
RUN ln -sf /dev/stdout /opt/bitnami/nginx/logs/access.log
RUN ln -sf /dev/stderr /opt/bitnami/nginx/logs/error.log
RUN chmod -R g+rwX /opt/bitnami/nginx/conf
COPY rootfs /
RUN /postunpack.sh
RUN /postunpack-harbor-portal.sh
ENV BITNAMI_APP_NAME="harbor-portal" \
BITNAMI_IMAGE_VERSION="1.8.2-debian-9-r10" \
NAMI_PREFIX="/.nami" \
NGINX_ENABLE_CUSTOM_PORTS="no" \
NGINX_HTTPS_PORT_NUMBER="" \
NGINX_HTTP_PORT_NUMBER="" \
PATH="/opt/bitnami/nginx/sbin:/opt/bitnami/harbor/bin:$PATH"
EXPOSE 8080 8443
WORKDIR /opt/bitnami/harbor
USER 1001
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/run.sh" ]