FROM docker.io/bitnami/minideb:buster LABEL maintainer "Bitnami " 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 libcom-err2 libcurl4 libffi6 libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed4 libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libnettle6 libnghttp2-14 libp11-kit0 libpcap0.8 libpsl5 librtmp1 libsasl2-2 libssh2-1 libssl1.1 libtasn1-6 libunistring2 numactl procps tar zlib1g RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mongodb-shell" "1.4.2-0" --checksum 10f7f0266c1bb42cb257ef364697bee5d43e670acaec8de7ed2855902c9eb98c RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.25.1-0" --checksum 863b0a81f75feed5c08bb5c1c5b280469b10c7cee9232ecbf613544755a7433c RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.3-0" --checksum 0603c8eaf6d24e76563431e36e512da06bfebb3a06ede31b3e84d9879213c162 RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.3-0" --checksum af5ec81cfb8e8420fe6af80a77d40da25e0f7e136abb6dde27267c97fb27cf8b RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mongodb" "4.2.20-0" --checksum d8202acb4b997b7e166982bfdb1b992f8e29234f9471d1cf162ed0b713d15c72 RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1 RUN apt-get update && apt-get upgrade -y && \ rm -r /var/lib/apt/lists /var/cache/apt/archives RUN chmod g+rwX /opt/bitnami RUN ln -s /opt/bitnami/scripts/mongodb-sharded/entrypoint.sh /entrypoint.sh RUN ln -s /opt/bitnami/scripts/liblog.sh /liblog.sh RUN ln -s /opt/bitnami/scripts/mongodb-sharded/run.sh /run.sh COPY rootfs / RUN /opt/bitnami/scripts/mongodb-sharded/postunpack.sh ENV APP_VERSION="4.2.20" \ BITNAMI_APP_NAME="mongodb-sharded" \ PATH="/opt/bitnami/mongodb/bin:/opt/bitnami/common/bin:$PATH" EXPOSE 27017 USER 1001 ENTRYPOINT [ "/opt/bitnami/scripts/mongodb-sharded/entrypoint.sh" ] CMD [ "/opt/bitnami/scripts/mongodb-sharded/run.sh" ]