-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
71 lines (55 loc) · 1.45 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
FROM debian:stretch
MAINTAINER Jan Losinski <[email protected]>
ADD sources.list /etc/apt/sources.list
RUN apt-get update && \
apt-get -y install --no-install-recommends \
ufraw \
enfuse \
jhead \
gimp \
build-essential \
cmake \
git \
libgtk2.0-dev \
pkg-config \
libavcodec-dev \
libavformat-dev \
libswscale-dev \
python-dev \
python-numpy \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
libdc1394-22-dev \
unzip \
&& \
apt-get -y build-dep libcv2.4 && \
apt-get -y build-dep pfstools && \
apt-get -y install libgsl0-dev && \
apt-get -y remove liboctave-dev && \
apt-get clean
WORKDIR /tmp
ADD opencv-2.4.11.zip ./
RUN unzip -x opencv-2.4.11.zip && \
cd opencv-2.4.11 && \
mkdir build && cd build && \
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. && \
make && make install && \
cd /tmp && rm -rf opencv-2.4.11
ADD pfstools-2.0.4.tgz ./
RUN cd pfstools-2.0.4 && \
mkdir build && cd build && \
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. && \
make && make install && \
cd /tmp && rm -rf pfstools-2.0.4
RUN groupadd user && \
useradd --uid 1000 --create-home --home-dir /home/user -g user user
RUN apt-get -y install dcraw ufraw-batch hugin-tools
ADD createHDR.sh /usr/bin/
ADD processBrackets.sh /usr/bin/
RUN chmod 755 /usr/bin/createHDR.sh /usr/bin/processBrackets.sh
USER user
WORKDIR /home/user