-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (18 loc) · 813 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
# Use publicly available Linux-Miniconda image
# start with miniconda image
FROM continuumio/miniconda3:latest
# Create and set the working directory to the container make copy simpler
RUN mkdir /home/code
WORKDIR /home/code
# Copy all files across to container
COPY . /home/code
# Copy jupyter config file
COPY ./docker/jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
# Install anaconda, conda-forge and pip dependencies
RUN conda update conda && conda env create -f environment.yml && conda clean -afy
# Make RUN commands use the new environment (not really necessary here)...
SHELL ["conda", "run", "-n", "treatment_sim", "/bin/bash", "-c"]
# Declare port used by jupyter-lab
EXPOSE 80
# launch JupyterLab and open the SimPy notebook
CMD jupyter-lab /home/code/src/model.ipynb