33 lines
2.0 KiB
Docker
33 lines
2.0 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 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 liblzma5 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 "yq" "4.15.1-0" --checksum 4008f3222788aed58591fa7c7bd6d52be083c99a11e19db93ddbb0124ef01765
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.1-3" --checksum 9e18c6c3411e702eb16aa60dc77baf3fd9af8d5beb2623936ef3af343d5ffd5b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.1-3" --checksum cddf51b3cb59d65d5d30e3fe37e99d8d53375ad88f0cc474019a52e6d8b4fc58
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mongodb" "5.0.5-0" --checksum 727b458bb03fcc4456e05074d36475c6ae8ad566dda1f7346e2d5bf681e499d3
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-0" --checksum 3e6fc37ca073b10a73a804d39c2f0c028947a1a596382a4f8ebe43dfbaa3a25e
|
|
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 BITNAMI_APP_NAME="mongodb-sharded" \
|
|
BITNAMI_IMAGE_VERSION="5.0.5-debian-10-r0" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/mongodb/bin:$PATH"
|
|
|
|
EXPOSE 27017
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/mongodb-sharded/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/mongodb-sharded/run.sh" ]
|