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 psmisc tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "openldap" "2.4.59-5" --checksum 4aaf8074750e5ff582f5dae805072e20734a6281ffa63ade46c63c9198e6215b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-3" --checksum 276ab5a0be4b05e136ec468d62c8f9cc4f40d9664c55f01f16a9f1209ba16980
|
|
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.59-debian-10-r197" \
|
|
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" ]
|