-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
25 lines (20 loc) · 881 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
FROM ubuntu:latest
RUN apt-get update && apt-get -y update
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get install -y build-essential python3.7 python3-pip python3-dev openslide-tools
RUN pip3 -q install pip --upgrade
RUN mkdir src
WORKDIR src
RUN mkdir notebooks
COPY notebooks/how_to_use_histolab.ipynb /src/notebooks
RUN pip3 install --upgrade pip
RUN pip install pooch
RUN pip3 install jupyter
RUN pip3 install histolab
# Add Tini. Tini operates as a process subreaper for jupyter. This prevents kernel crashes.
ENV TINI_VERSION v0.6.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root", "--notebook-dir=/src/notebooks"]