-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (52 loc) · 1.67 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
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
LABEL authors="viciopoli"
LABEL description="Docker image containing all requirements for the FAVOR project"
LABEL version="1.0"
# set noninteractive installation
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Toronto
ENV LANGUAGE=en_US.UTF-8
ENV LANG=en_US.UTF-8
RUN mkdir favor
WORKDIR /favor
# Create directories
RUN mkdir -p /favor/thirdparty && mkdir -p /favor/lib && mkdir -p /favor/scripts
# Update system and install dependencies
RUN apt-get update && apt-get install -y \
xserver-xorg \
python3-pip \
software-properties-common \
wget \
libgl1 \
libglib2.0-0 \
libxcb-xinerama0 \
libx11-xcb1 \
libxcb1 \
libxcb-xinput0 \
libxcb-xfixes0 \
libxcb-shape0 \
libxcb-shm0 \
libxcb-randr0 \
libxcb-keysyms1 \
libxcb-image0 \
libxcb-icccm4 \
libxcb-glx0 \
libxcb-render0 \
libxcb-render-util0 \
libxcb-xkb1 \
libxcb-sync1 \
libxcb-dri3-0 \
libxcb-present0
# Install Python dependencies
RUN pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
RUN pip install torch-scatter==2.1.1 -f https://data.pyg.org/whl/torch-1.13.1+cu117.html
RUN pip install numpy==1.26.4 matplotlib==3.7.3 mmengine==0.8.4 huggingface_hub==0.19.4 scipy==1.10.1 einops==0.6.1 overrides poselib==2.0.2 open3d==0.16.0
# Copy necessary files
COPY configs /favor/configs
COPY lib /favor/lib
COPY scripts/visualizer.sh /favor/scripts
COPY thirdparty /favor/thirdparty
COPY visualizer.py /favor
# Run demo
CMD ["bash", "/favor/scripts/visualizer.sh", "chess"]
# when run mount volume dataset to /favor/dataset