forked from dariomalchiodi/superhero-datascience
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-local
49 lines (34 loc) · 1.14 KB
/
Dockerfile-local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM jupyter/scipy-notebook
##################
# CONDA PACKAGES #
##################
RUN conda update conda && conda install -c conda-forge --yes \
'nodejs<10' \
pip \
ipyvolume
USER root
# Install additional requirements (if not already installed)
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN rm requirements.txt
USER $NB_UID
RUN mkdir -p util/theme-superhero-datascience
COPY util/theme-superhero-datascience/* util/theme-superhero-datascience/
RUN git clone https://github.com/jupyterlab/jupyterlab.git
WORKDIR /home/jovyan/jupyterlab
RUN pip install -e . && \
jlpm install && \
cp ../util/theme-superhero-datascience/create-theme.js buildutils/lib && \
jlpm run create:theme
WORKDIR /home/jovyan
#USER root
#RUN chown -R jovyan jupyterlab/theme-superhero-datascience
USER jovyan
WORKDIR /home/jovyan/jupyterlab/theme-superhero-datascience
RUN cp ../../util/theme-superhero-datascience/tsconfig.json . && \
cp ../../util/theme-superhero-datascience/variables.css style/ && \
npm install && \
npm run build && \
jupyter labextension install .
EXPOSE 8888
ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0"]