forked from facebookresearch/House3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.24 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
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu18.04
# Note: this Dockerfile needs to be used with nvidia-docker
# Note: needs nvidia/opengl. nvidia/cuda does not support opengl
MAINTAINER Yuxin Wu
# make apt-get noninteractive
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
libglfw3-dev libglm-dev libx11-dev libegl1-mesa-dev \
libpng-dev libjpeg-dev python3-opencv \
python3-dev build-essential pkg-config git curl wget automake libtool
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
rm get-pip.py
# tqdm is only used by the tests
RUN pip3 install tqdm
# update git
RUN git clone --recursive https://github.com/facebookresearch/House3D /House3D
RUN wget https://github.com/facebookresearch/House3D/releases/download/example-data/example-data.tgz \
-O /House3D/data.tgz && cd /House3D && tar xzf data.tgz
ENV TEST_HOUSE /House3D/house/05cac5f7fdd5f8138234164e76a97383/house.obj
# build renderer
WORKDIR /House3D/renderer
ENV PYTHON_CONFIG python3-config
RUN make -j
# install House3D
WORKDIR /House3D
RUN pip3 install -e .
# test renderer
# RUN cd /House3D/renderer ./objview-offline.bin $TEST_HOUSE
# test python API
# RUN cd /House3D/renderer/tests && python3 test-rendering.py $TEST_HOUSE