forked from DIAGNijmegen/pathology-whole-slide-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (38 loc) · 1.33 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04
# Set time zone
ENV TZ=Europe/Amsterdam
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install python3.8
RUN : \
&& apt-get update \
&& apt-get install -y --no-install-recommends software-properties-common \
&& add-apt-repository -y ppa:deadsnakes \
&& apt-get install -y --no-install-recommends python3.8-venv \
&& apt-get install libpython3.8-dev -y \
&& apt-get clean \
&& :
# Add env to PATH
RUN python3.8 -m venv /venv
ENV PATH=/venv/bin:$PATH
# Install openslide-tools
RUN : \
&& apt-get update \
&& apt-get install -y build-essential \
&& apt-get install -y openslide-tools
# Install ASAP
RUN : \
&& apt-get update \
&& apt-get -y install curl \
&& curl --remote-name --location "https://github.com/computationalpathologygroup/ASAP/releases/download/ASAP-2.1-(Nightly)/ASAP-2.1-Ubuntu2004.deb" \
&& dpkg --install ASAP-2.1-Ubuntu2004.deb || true \
&& apt-get -f install --fix-missing --fix-broken --assume-yes \
&& ldconfig -v \
&& apt-get clean \
&& echo "/opt/ASAP/bin" > /venv/lib/python3.8/site-packages/asap.pth \
&& rm ASAP-2.1-Ubuntu2004.deb \
&& :
# Install wholeslidedata
RUN pip install wholeslidedata
# install jupyter lab
# Download example data
# copy userguide