28 lines
1.3 KiB
Docker
28 lines
1.3 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 libcom-err2 libcrypt1 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libltdl7 libnsl2 libnss3-tools libsasl2-2 libssl1.1 libtirpc3 libwiredtiger0 libwrap0 mdbtools procps psmisc tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "openldap" "2.5.12-150" --checksum f7211f23c9866e975069940d041adcdf17549a02cacee302008e092092a92164
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-150" --checksum da4a2f759ccc57c100d795b71ab297f48b31c4dd7578d773d963bbd49c42bd7b
|
|
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 APP_VERSION="2.5.12" \
|
|
BITNAMI_APP_NAME="openldap" \
|
|
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" ]
|