38 lines
2.0 KiB
Docker
38 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"
|
|
|
|
ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libbz2-1.0 libc6 libffi6 libgcc1 libjemalloc2 liblzma5 libncursesw6 libreadline7 libsqlite3-0 libssl1.1 libtinfo6 procps tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.9.10-14" --checksum 2265c94194fe1bdee9d1b1af2aac044edc67b86d9c770cfcc20ef3b83e102bb4
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "1.8.322-4" --checksum 02f54928e3049660ccebfc9a6d348bfaf27c9eb5abf70ebad45962b88f38473d
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-3" --checksum 276ab5a0be4b05e136ec468d62c8f9cc4f40d9664c55f01f16a9f1209ba16980
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.18.1-0" --checksum 40e447d086be7878cbe76e99fa5cc1b004eaaaa5e3c88f1f505bdf500e1da613
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "cassandra" "4.0.1-2" --checksum 32fc25c1fa11721a5079e946ba5297eb10dc405c0b8211aa046ea535618988b2
|
|
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/cassandra/entrypoint.sh /entrypoint.sh
|
|
RUN ln -s /opt/bitnami/scripts/cassandra/run.sh /run.sh
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/cassandra/postunpack.sh
|
|
RUN /opt/bitnami/scripts/java/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="cassandra" \
|
|
BITNAMI_IMAGE_VERSION="4.0.1-debian-10-r136" \
|
|
JAVA_HOME="/opt/bitnami/java" \
|
|
PATH="/opt/bitnami/python/bin:/opt/bitnami/java/bin:/opt/bitnami/common/bin:/opt/bitnami/cassandra/bin:$PATH"
|
|
|
|
EXPOSE 7000 9042
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/cassandra/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/cassandra/run.sh" ]
|