forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (45 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#---
# name: nerfstudio
# group: nerf
# config: config.py
# depends: [transformers, bitsandbytes, diffusers, h5py, ninja, ffmpeg, polyscope, pymeshlab, tinycudann, nerfacc, pycolmap, glomap, hloc, pyceres, gsplat]
# requires: '>=34.1.0'
# test: test.py
# notes: https://github.com/nerfstudio-project/nerfstudio.git
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG NERFSTUDIO_VERSION \
FORCE_BUILD=off
ARG CUDAARCHS
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libboost-filesystem1.74.0 \
libboost-program-options1.74.0 \
libc6 \
libceres-dev \
libfreeimage3 \
libgcc-s1 \
libgl1 \
libglew2.2 \
libgoogle-glog-dev \
libqt5core5a \
libqt5gui5 \
libqt5widgets5 \
build-essential \
python-is-python3 \
ffmpeg \
wget && \
rm -rf /var/lib/apt/lists/*
RUN cd /opt/
RUN pip3 install build wheel
RUN export MAKEFLAGS="-j$(nproc)"
# Add glog path to LD_LIBRARY_PATH.
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
RUN python3 -m pip install --upgrade pip setuptools promise pybind11 omegaconf
EXPOSE 7007
COPY build.sh install.sh /tmp/NERFSTUDIO/
RUN /tmp/NERFSTUDIO/install.sh || /tmp/NERFSTUDIO/build.sh
RUN cd /opt/
CMD ["/bin/bash"]