-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
85 lines (71 loc) · 2.25 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
82
83
84
85
FROM nvidia/cudagl:11.1.1-devel-ubuntu18.04
ARG USER_NAME
ARG USER_PASSWORD
ARG USER_ID
ARG USER_GID
RUN rm /etc/apt/sources.list.d/cuda.list
RUN apt-key del 7fa2af80
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
RUN apt-get update
RUN apt install sudo
RUN useradd -ms /bin/bash $USER_NAME
RUN usermod -aG sudo $USER_NAME
RUN yes $USER_PASSWORD | passwd $USER_NAME
# set uid and gid to match those outside the container
RUN usermod -u $USER_ID $USER_NAME
RUN groupmod -g $USER_GID $USER_NAME
# work directory
WORKDIR /home/$USER_NAME
# install system dependencies
COPY ./scripts/install_deps.sh /tmp/install_deps.sh
RUN yes "Y" | /tmp/install_deps.sh
# setup python environment
RUN cd $WORKDIR
# install python requirements
# RUN sudo python3 -m pip install --upgrade pip && \
# sudo python3 -m pip install --upgrade
# install pip3
RUN apt-get -y install python3-pip
RUN sudo python3 -m pip install --upgrade pip
# install pytorch
RUN sudo pip3 install \
torch==1.10.2+cu113 \
torchvision==0.11.3+cu113 \
-f https://download.pytorch.org/whl/torch_stable.html
# install GLX-Gears (for debugging)
RUN apt-get update && apt-get install -y \
mesa-utils \
python3-setuptools \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade setuptools wheel
RUN sudo apt-get install build-essential
RUN sudo pip3 install git+https://github.com/openai/CLIP.git
RUN sudo pip3 install \
gdown \
absl-py>=0.7.0 \
gym==0.17.3 \
pybullet>=3.0.4 \
matplotlib>=3.1.1 \
scipy==1.4.1 \
scikit-image==0.17.2 \
transforms3d==0.3.1 \
tdqm \
hydra-core==1.0.5 \
wandb \
transformers==4.3.2 \
kornia \
ftfy \
regex \
timm==0.5.4\
ffmpeg \
opencv-python==4.1.2.30
RUN sudo pip3 install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-1.10.2+cu113.html
RUN sudo pip3 install torch-geometric
# RUN sudo pip3 install torch_geometric
# RUN sudo apt-get install libpython3-dev
# RUN sudo pip3 install torch_scatter==2.0.9
RUN pip3 install -U spacy
RUN python3 -m spacy download en_core_web_trf
# change ownership of everything to our user
RUN mkdir /home/$USER_NAME/paragon
RUN cd /home/$USER_NAME/paragon && echo $(pwd) && chown $USER_NAME:$USER_NAME -R .