forked from peteanderson80/Matterport3DSimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (34 loc) · 1.13 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
# Matterport3DSimulator
# Requires nvidia gpu with driver 396.37 or higher
FROM nvidia/cudagl:11.3.0-devel-ubuntu20.04
# Install a few libraries to support both EGL and OSMESA options
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
wget \
doxygen \
curl \
libjsoncpp-dev \
libepoxy-dev \
libglm-dev \
libosmesa6 \
libosmesa6-dev \
libglew-dev \
libopencv-dev \
python3-opencv \
python3-setuptools \
python3-dev \
python3-pip
RUN pip3 install -i https://mirrors.bfsu.edu.cn/pypi/web/simple \
opencv-python==4.10.0.84 \
numpy==1.24.4 \
pandas==2.0.3 \
networkx==3.1
# 安装 PyTorch 和 torchvision
RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 -f https://download.pytorch.org/whl/torch_stable.html
# Install latest cmake
ADD https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.sh /cmake-3.12.2-Linux-x86_64.sh
RUN mkdir /opt/cmake
RUN sh /cmake-3.12.2-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
RUN cmake --version
ENV PYTHONPATH=/root/mount/Matterport3DSimulator/build