common/hub-jupyter-spark/Dockerfile

24 lines
522 B
Docker

FROM hub-jupyter
ARG NB_USER="jovyan"
USER root
COPY --chown=$NB_USER jupyter_notebook_config.py /home/$NB_USER/.jupyter/
RUN yum install -y \
java &&\
pip3 install \
pyspark \
jupyter-spark \
elephas \
&&\
jupyter serverextension enable --py jupyter_spark &&\
jupyter nbextension install --py jupyter_spark &&\
jupyter nbextension enable --py jupyter_spark &&\
jupyter nbextension enable --py widgetsnbextension
USER $NB_USER
WORKDIR /data
CMD ["jupyter", "lab", "--ContentsManager.allow_hidden=True"]