Dockerfile 760 Bytes
Newer Older
Brian McMahan committed
1
FROM jupyter/minimal-notebook:4cdbc9cdb7d1
Eszter Schoell committed
2 3 4 5 6 7 8

#Set the working directory
WORKDIR /home/jovyan/

# Modules
COPY requirements.txt /home/jovyan/requirements.txt
RUN pip install -r /home/jovyan/requirements.txt
Brian McMahan committed
9 10

RUN jupyter nbextension enable --py widgetsnbextension
Eszter Schoell committed
11 12

# Add files
Brian McMahan committed
13 14
COPY day_1 /home/jovyan/day_1
COPY day_2 /home/jovyan/day_2
Eszter Schoell committed
15
COPY data /home/jovyan/data
Brian McMahan committed
16
COPY modelzoo /home/jovyan/modelzoo
Eszter Schoell committed
17 18 19 20 21 22 23 24 25 26 27 28

# Allow user to write to directory
USER root
RUN chown -R $NB_USER /home/jovyan \
    && chmod -R 774 /home/jovyan
USER $NB_USER

# Expose the notebook port
EXPOSE 8888

# Start the notebook server
CMD jupyter notebook --no-browser --port 8888 --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True --NotebookApp.iopub_data_rate_limit=1.0e10