Permalink
Browse files

add Dockerfile

  • Loading branch information...
nuest committed May 10, 2018
1 parent 11ac0ea commit 535900a934685bcfaf940956ba2571dddbb19009
Showing with 15 additions and 0 deletions.
  1. +15 −0 Dockerfile
@@ -0,0 +1,15 @@
FROM jupyter/minimal-notebook

# roughly based on https://github.com/stencila/stencila/blob/develop/README.md
# give NB_USER rights in the installation directory
ENV STENCILA_DIR /opt/stencila
USER root
RUN mkdir -p ${STENCILA_DIR} && chown -R ${NB_USER} ${STENCILA_DIR}

# install Stencila as NB_USER
USER ${NB_USER}
WORKDIR ${STENCILA_DIR}
RUN git clone --depth 1 https://github.com/stencila/stencila.git ${STENCILA_DIR}
RUN npm install

WORKDIR ${HOME}

0 comments on commit 535900a

Please sign in to comment.