-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
81 lines (50 loc) · 2.54 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#FROM nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu20.04
#FROM nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu18.04
FROM nvidia/cuda:11.0.3-cudnn8-runtime-ubuntu20.04
MAINTAINER tarun.chadha@id.ethz.com
RUN rm /etc/apt/sources.list.d/cuda.list /etc/apt/sources.list.d/nvidia-ml.list
RUN apt-get -y update && apt-get -y upgrade
ENV TZ=Europe/Zurich
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get install -y sudo build-essential
RUN apt-get update && apt-get install -y build-essential\
software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update
RUN apt-get install -y libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
python3.7 \
python3.7-dev \
python3.7-venv \
wget \
vim \
git \
htop \
rsync \
libxrender1 \
libfontconfig1
RUN apt-get update
RUN apt-get install -y --no-install-recommends ffmpeg
RUN apt-get install unzip
WORKDIR /home/user
SHELL ["/bin/bash", "-c"]
RUN wget https://bootstrap.pypa.io/get-pip.py && python3.7 get-pip.py && rm get-pip.py
RUN git clone https://github.com/SIPEC-Animal-Data-Analysis/SIPEC.git
WORKDIR /home/user/SIPEC
RUN git checkout main
ENV VIRTUAL_ENV=/home/user/SIPEC/env
RUN python3.7 -m venv env
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python -m pip install --upgrade pip && pip install -r requirements.txt
ENV PYTHONPATH="/home/user/SIPEC:${PYTHONPATH}"
ENV PATH="/home/user/SIPEC/SwissKnife:$PATH"
RUN mkdir /home/user/data
WORKDIR /home/user/data/
RUN wget -O pretrained_networks.zip https://www.dropbox.com/s/whed8p1ovvuifrg/pretrained_networks.zip?dl=0 && unzip pretrained_networks.zip -x / -d pretrained_networks && rm pretrained_networks.zip
RUN wget -O mouse_segmentation_4plex_merged.zip https://www.dropbox.com/s/f2dgpkuwn6mqs7i/mouse_segmentation_4plex_merged.zip?dl=0 && unzip mouse_segmentation_4plex_merged.zip && rm mouse_segmentation_4plex_merged.zip
RUN wget -O full_inference_posenet_25_June.zip https://www.dropbox.com/s/20jpf2nc2ygodzy/full_inference_posenet_25_June.zip?dl=0 && unzip full_inference_posenet_25_June.zip && rm full_inference_posenet_25_June.zip
RUN wget -O mouse_pose_estimation_dlc.zip https://www.dropbox.com/s/44dgqo5oo0s035w/mouse_pose_estimation_dlc.zip?dl=0 && unzip mouse_pose_estimation_dlc.zip && rm mouse_pose_estimation_dlc.zip
RUN wget -O mouse_classification_comparison.zip https://www.dropbox.com/s/z74lf6r9snxior5/mouse_classification_comparison.zip?dl=0 && unzip mouse_classification_comparison.zip && rm mouse_classification_comparison.zip
ENTRYPOINT ["python"]
WORKDIR /home/user/SIPEC/SwissKnife