29 lines
1.2 KiB
Docker
29 lines
1.2 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 libc6 libdb5.3 libltdl7 libnss3-tools libodbc1 libperl5.28 libsasl2-2 libssl1.1 libwrap0 mdbtools procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "openldap" "2.4.57-0" --checksum c0685beebf330666e71388b30c5eefffef5dbd8e8d631a1d90f1e4e05db4dc00
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-2" --checksum 4d858ac600c38af8de454c27b7f65c0074ec3069880cb16d259a6e40a46bbc50
|
|
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/openldap/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="openldap" \
|
|
BITNAMI_IMAGE_VERSION="2.4.57-debian-10-r12" \
|
|
PATH="/opt/bitnami/openldap/bin:/opt/bitnami/openldap/sbin:/opt/bitnami/common/bin:$PATH"
|
|
|
|
EXPOSE 1389 1636
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/openldap/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/openldap/run.sh" ]
|