-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
81 lines (69 loc) · 2.06 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# based on
# https://github.com/benjamin-heasly/mitsuba-docker/blob/master/rgb/Dockerfile
#
# builder
FROM ubuntu:20.04 AS builder
LABEL authors="Alexander Rath <[email protected]>"
ENV TZ=Europe
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && \
apt-get install -y \
build-essential \
scons \
python2 \
libgl1-mesa-dev \
libglu1-mesa-dev \
libxxf86vm-dev \
libpng-dev \
libjpeg-dev \
libilmbase-dev \
libxerces-c-dev \
libboost-all-dev \
libopenexr-dev \
libglewmx-dev \
libpcrecpp0v5 \
libeigen3-dev \
libfftw3-dev \
wget && \
apt-get clean && \
apt-get autoclean && \
apt-get autoremove
RUN wget https://github.com/OpenImageDenoise/oidn/releases/download/v1.4.1/oidn-1.4.1.x86_64.linux.tar.gz && \
tar -xvzf oidn* --strip-components=1 -C /usr/local/ && \
rm oidn*
WORKDIR /mitsuba
COPY mitsuba .
RUN cp build/config-linux-gcc.py config.py && \
/usr/bin/env python2 $(which scons) -j $(nproc)
# mitsuba
FROM ubuntu:20.04 AS mitsuba
LABEL authors="Alexander Rath <[email protected]>"
ENV TZ=Europe
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && \
apt-get install -y \
libgl1-mesa-dev \
libglu1-mesa-dev \
libxxf86vm-dev \
libpng-dev \
libjpeg-dev \
libilmbase-dev \
libxerces-c-dev \
libboost-all-dev \
libopenexr-dev \
libglewmx-dev \
libpcrecpp0v5 \
libeigen3-dev \
libfftw3-dev && \
apt-get clean && \
apt-get autoclean && \
apt-get autoremove
WORKDIR /mitsuba
ENV MITSUBA_DIR /mitsuba
ENV PYTHONPATH /mitsuba/dist/python:/mitsuba/dist/python/2.7:
ENV PATH /mitsuba/wrapper:/mitsuba/dist:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH /mitsuba/dist:/usr/local/lib:
COPY --from=builder /usr/local /usr/local
COPY --from=builder /mitsuba .
CMD [ "mitsuba" ]