-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
32 lines (25 loc) · 1 KB
/
Dockerfile
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
FROM jupyter/scipy-notebook:d4cbf2f80a2a
WORKDIR work
RUN pip install --no-cache-dir mpcontribs-client==1.5.7 mpcontribs-io==1.5.9
RUN mkdir -p mpcontribs-webtzite/webtzite
COPY mpcontribs-webtzite/webtzite/package.json mpcontribs-webtzite/webtzite/
COPY package.json .
RUN npm install 2>&1
COPY mpcontribs-webtzite/webtzite/assets mpcontribs-webtzite/webtzite/assets
COPY webpack-binder.config.js webpack.config.js
COPY binder/binder.js .
RUN npm run webpack 2>&1
RUN mkdir /home/jovyan/.jupyter/custom && \
mv -v /home/jovyan/work/dist /home/jovyan/.jupyter/custom/js
COPY binder/custom.js /home/jovyan/.jupyter/custom/
COPY binder/*.ipynb /home/jovyan/work/
USER root
RUN chown -R ${NB_UID} ${HOME}/work
USER ${NB_USER}
RUN rm -f binder.js package-lock.json package.json webpack.config.js
RUN rm -rf node_modules
RUN rm -rf mpcontribs-webtzite
#ENV NODE_ENV development
#ENV SETUPTOOLS_SCM_PRETEND_VERSION 1.5.9
#COPY mpcontribs-io /tmp/mpcontribs-io
#RUN cd /tmp/mpcontribs-io && pip install --no-cache-dir -e .