forked from graphdeco-inria/gaussian-splatting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (59 loc) · 1.5 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
FROM nvidia/cuda:11.4.3-devel-ubuntu20.04
# Gaussian splt dependencies
RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
wget \
vim \
imagemagick
# Install conda
ENV CONDA_DIR /opt/conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda
ENV PATH=$CONDA_DIR/bin:$PATH
WORKDIR /workspace
# Install requirements
COPY setup.py setup.py
COPY environment.yml environment.yml
COPY gaussian_splatting/ gaussian_splatting/
COPY scripts/ scripts/
COPY submodules/ submodules/
RUN conda init
RUN conda env create --file environment.yml
# COLMAP dependencies
RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
cmake \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-graph-dev \
libboost-regex-dev \
libboost-system-dev \
libboost-test-dev \
libeigen3-dev \
libsuitesparse-dev \
libfreeimage-dev \
libgoogle-glog-dev \
libgflags-dev \
libglew-dev \
qtbase5-dev \
libqt5opengl5-dev \
libcgal-dev \
libflann-dev \
libsqlite3-dev \
ninja-build \
libmetis-dev \
libgoogle-glog-dev \
libgtest-dev \
libsqlite3-dev \
libceres-dev
#Build COLMAP
RUN cd .. && \
git clone https://github.com/colmap/colmap.git && \
cd colmap && \
mkdir build && \
cd build && \
cmake .. -GNinja && \
ninja && \
ninja install