35 lines
1.9 KiB
Docker
35 lines
1.9 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 ca-certificates curl libbz2-1.0 libc6 libffi6 libgcc1 liblzma5 libncursesw6 libreadline7 libsqlite3-0 libssl1.1 libstdc++6 libtinfo6 procps sudo unzip zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.6.10-3" --checksum 9211a0faa0fd4a39ddec622d28d5390b89b3eaef162c3822a3dfb636c14bf7b7
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "1.8.242-0" --checksum 3a70f3d1c3cd9bc6ec581b2a10373a2b323c0b9af40402ce8d19aeb0b3d02400
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "spark" "2.4.5-4" --checksum 4365d8e966c9e735dd5b72a8e086d9ad96f5aa9bf52ce2ac984a27617d170618
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-0" --checksum 582d501eeb6b338a24f417fededbf14295903d6be55c52d66c52e616c81bcd8c
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/spark/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="spark" \
|
|
BITNAMI_IMAGE_VERSION="2.4.5-debian-10-r83" \
|
|
JAVA_HOME="/opt/bitnami/java" \
|
|
LD_LIBRARY_PATH="/opt/bitnami/python/lib/:/opt/bitnami/spark/venv/lib/python3.6/site-packages/numpy/.libs/:$LD_LIBRARY_PATH" \
|
|
LIBNSS_WRAPPER_PATH="/opt/bitnami/common/lib/libnss_wrapper.so" \
|
|
NSS_WRAPPER_GROUP="/opt/bitnami/spark/tmp/nss_group" \
|
|
NSS_WRAPPER_PASSWD="/opt/bitnami/spark/tmp/nss_passwd" \
|
|
PATH="/opt/bitnami/python/bin:/opt/bitnami/java/bin:/opt/bitnami/spark/bin:/opt/bitnami/spark/sbin:/opt/bitnami/common/bin:$PATH" \
|
|
SPARK_HOME="/opt/bitnami/spark"
|
|
|
|
WORKDIR /opt/bitnami/spark
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/spark/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/spark/run.sh" ]
|