forked from vishnu2kmohan/beakerx-dcos-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-sparkmagic
23 lines (19 loc) · 1005 Bytes
/
Dockerfile-sparkmagic
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM vishnumohan/miniconda3:4.3.30-3.6.3
MAINTAINER Vishnu Mohan <[email protected]>
COPY --chown="1000:100" beakerx-sparkmagic-conda-env.yml "${HOME}/work/"
RUN mkdir -p $HOME/.sparkmagic \
&& ${CONDA_DIR}/bin/conda env create --json -q -f beakerx-sparkmagic-conda-env.yml \
&& ${CONDA_DIR}/bin/conda clean --json -tipsy \
&& bash -c 'source activate beakerx \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager \
&& jupyter labextension install @jupyterlab/hub-extension \
&& jupyter labextension install @jupyterlab/geojson-extension \
&& jupyter labextension install @jupyterlab/github \
&& jupyter labextension install jupyterlab_bokeh \
&& jupyter labextension install beakerx-jupyterlab \
&& source deactivate'
EXPOSE 8888
CMD ["notebook.sh"]
COPY --chown="1000:100" sparkmagic-dcos-config.json "${HOME}/.sparkmagic/config.json"
COPY --chown="1000:100" jupyter_notebook_config.py "${HOME}/.jupyter/"
COPY notebook.sh /usr/local/bin/