diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c910efb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +__pycache__ +*.pyc +build/ +dist/ +MANIFEST +.idea/ +.ipynb_checkpoints/ +*.egg-info/ +.git +.gitignore diff --git a/Dockerfile b/Dockerfile index a5867ae..adc1c1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,13 @@ MAINTAINER Brendan Rius 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/