-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (41 loc) · 1.33 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
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /workspace
RUN apt update && \
apt install -y build-essential \
cmake \
git \
libblosc-dev \
libboost-all-dev \
libgl1 \
libtbb-dev \
python3-pip
RUN pip install numpy && \
git clone https://github.com/nachovizzo/openvdb.git -b nacho/fix_background_inactive && \
cd openvdb && \
mkdir build && cd build && \
cmake \
-DOPENVDB_BUILD_PYTHON_MODULE=ON \
-DUSE_NUMPY=ON \
.. && \
make -j4 all install
RUN git clone --recursive https://github.com/PRBonn/vdb_to_numpy && \
cd vdb_to_numpy && \
pip install .
RUN git clone https://github.com/PRBonn/vdbfusion.git && \
cd vdbfusion && \
sed -i 's/"-c"/"-I" "-c"/g' src/vdbfusion/pybind/CMakeLists.txt && \
pip install . && \
pip install Cython==0.29.36 && \
cd .. && \
git clone https://github.com/yaml/pyyaml.git && \
cd pyyaml && \
git checkout release/5.4.1 && \
sed -i.bak 's/Cython/Cython<3.0/g' pyproject.toml && \
python3 setup.py sdist && \
pip install --pre dist/PyYAML-5.4.1.tar.gz && \
cd .. && \
git clone https://github.com/PRBonn/make_it_dense && \
cd make_it_dense && \
pip install .
COPY . /workspace