forked from zenustech/zeno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (43 loc) · 1.76 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
# archibate/zeno
#
# ZENO application image
#
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /build
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y wget
RUN apt-get install -y git
RUN apt-get install -y gcc
RUN apt-get install -y g
RUN apt-get install -y make
RUN apt-get install -y cmake
RUN apt-get install -y libboost-iostreams-dev
RUN apt-get install -y libboost-system-dev
RUN apt-get install -y libtbb-dev
RUN apt-get install -y libilmbase-dev
RUN apt-get install -y libopenexr-dev
RUN apt-get install -y zlib1g-dev
RUN apt-get install -y libeigen3-dev
RUN apt-get install -y libopenblas-dev
RUN git clone https://gitee.com/codespace1212/c-blosc.git --depth=1 --branch=v1.5.0
RUN cd c-blosc && mkdir build && cd build && cmake .. && make -j32 && make install && cd ../..
RUN git clone https://gitee.com/zeng_gui/openvdb.git --depth=1
RUN cd openvdb && mkdir build && cd build && cmake .. && make -j32 && make install && cd ../..
#################################################
# Below is only for end-user application images #
#################################################
RUN apt-get install -y python-is-python3
RUN apt-get install -y python-dev-is-python3
RUN apt-get install -y python3-pip
RUN python -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
RUN apt-get install -y libglvnd-dev
RUN apt-get install -y libglapi-mesa
RUN git clone https://gitee.com/archibate/zeno.git --depth=1
RUN cd zeno && mkdir build && cd build && cmake .. && make -j32 && make install && cd .. && python setup.py install && cd ..
RUN rm -rf /build
WORKDIR /root
ENTRYPOINT bash