forked from antmedellin/dinov2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (40 loc) · 813 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# build command docker build -t dino2_docker .
FROM nvidia/cuda:12.5.0-devel-ubuntu22.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt update
RUN apt upgrade -y
RUN apt install -y \
git \
build-essential \
wget \
unzip \
pkg-config \
cmake \
pip \
sudo \
g++ \
ca-certificates
RUN pip install \
torch \
torchvision\
omegaconf \
torchmetrics==0.10.3 \
fvcore \
iopath \
xformers==0.0.18 \
submitit
# cuml-cu11
RUN pip install \
matplotlib \
ipykernel \
opencv-python \
scikit-learn \
albumentations \
transformers \
evaluate
RUN apt install -y \
libgl1-mesa-glx
RUN useradd -m dino_user
RUN echo "dino_user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/dino_user
USER dino_user
WORKDIR /home