30 lines
1.5 KiB
Docker
30 lines
1.5 KiB
Docker
FROM docker.io/bitnami/minideb:stretch
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-9" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libc6 libgcc1 libpcap0.8 libssl1.1 numactl procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.13.2-0" --checksum c28050e85135054df457fe1d4ad1922269808d304b6d33815ae39ad7e980ecd6
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.0-1" --checksum 04cca3ba5204635108908eb8032b7b2f1882aba2f1636cc45fe3c70dfa0b498a
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.0-1" --checksum 5ab8cb7ec2412c49d506087b360876bae0be39a357427fae8816536b0fd6241d
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mongodb" "3.6.23-2" --checksum ac34df2bde72f2e2663e5153268a93dde0a167ca3385815988cb41da1d9b2a6b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-0" --checksum d177bc3da307f83d83ac8284be8062fc8b428e8f38a3b697876b5efc73ebf74f
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/mongodb/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="mongodb" \
|
|
BITNAMI_IMAGE_VERSION="3.6.23-debian-9-r177" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/mongodb/bin:$PATH"
|
|
|
|
EXPOSE 27017
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/mongodb/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/mongodb/run.sh" ]
|