changeset 45:e9b123952dff

Fix #9
author Brendan Rius <brendan@omixy.com>
date Wed, 08 Jun 2016 11:24:21 +0100
parents cd22245b4b16
children 59cf2351e933
files .dockerignore Dockerfile
diffstat 2 files changed, 20 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.dockerignore	Wed Jun 08 11:24:21 2016 +0100
@@ -0,0 +1,10 @@
+__pycache__
+*.pyc
+build/
+dist/
+MANIFEST
+.idea/
+.ipynb_checkpoints/
+*.egg-info/
+.git
+.gitignore
--- a/Dockerfile	Wed Jun 08 10:49:11 2016 +0100
+++ b/Dockerfile	Wed Jun 08 11:24:21 2016 +0100
@@ -3,6 +3,13 @@
 
 USER root
 
-COPY ./ /home/$NB_USER/.jupyter/jupyter_c_kernel/
-RUN pip install /home/$NB_USER/.jupyter/jupyter_c_kernel/
-RUN jupyter-kernelspec install /home/$NB_USER/.jupyter/jupyter_c_kernel/c_spec/
+RUN mkdir /jupyter
+
+WORKDIR /jupyter
+
+COPY ./ jupyter_c_kernel/
+RUN pip install -e jupyter_c_kernel/
+
+RUN jupyter-kernelspec install jupyter_c_kernel/c_spec/
+
+WORKDIR /home/$NB_USER/