-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
30 lines (24 loc) · 854 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
29
30
FROM python:2.7
# Update the OS as needed
RUN apt-get update
# Get TEX fonts for jupyter notebook
RUN apt-get install texlive-latex-recommended -y
RUN apt-get install texlive-latex-extra -y
RUN apt-get install texlive-fonts-recommended -y
RUN apt-get install chktex -y
RUN apt-get install dvipng -y
# Install python requirements using pip:
RUN pip install --upgrade jupyter
RUN pip install nbconvert
# Finally get set up to build the docs
RUN pip install sphinx
RUN pip install sphinx_rtd_theme
# Install the dependencies and the package:
WORKDIR /home
RUN git clone https://github.com/aimalz/qp.git
WORKDIR /home/qp
RUN pip install -r requirements.txt
RUN python setup.py install
# cd to the work directory and launch a jupyter notebook on run
WORkDIR /home/qp/docs/notebooks
CMD jupyter notebook --no-browser --allow-root --port=8888 --ip=0.0.0.0