-
Notifications
You must be signed in to change notification settings - Fork 280
/
Dockerfile
28 lines (21 loc) · 880 Bytes
/
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
# Base image: miniconda3
FROM continuumio/miniconda3
# Install GCC for Theano
RUN apt-get install build-essential -y
# Install environment
COPY ./binder/environment.yml /environment.yml
RUN conda env create -f /environment.yml
RUN rm /environment.yml
ENV PATH /opt/conda/envs/bayesian-modelling-tutorial/bin:$PATH
# For debugging purposes during environment build
RUN conda list -n bayesian-modelling-tutorial
# Install jupyterlab extensions
RUN jupyter labextension install @pyviz/jupyterlab_pyviz
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
# Copy contents of repository to Dockerfile
COPY . /root/bayes
WORKDIR /root/bayes
# Create Jupyter kernel to match notebooks
RUN python -m ipykernel install --user --name bayesian-stats-modelling-tutorial
# Entry point is Jupyter lab
ENTRYPOINT jupyter lab --port 8999 --ip="*" --allow-root --no-browser