1
- FROM lsiobase/alpine:3.5
1
+ FROM lsiobase/alpine:3.6
2
2
MAINTAINER saarg
3
3
4
4
# package version
@@ -12,22 +12,26 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
12
12
# Environment settings
13
13
ENV HOME="/config"
14
14
15
- # copy prebuilds
15
+ # copy prebuilds
16
16
COPY patches/ /
17
17
18
18
# install build dependencies
19
19
RUN \
20
20
apk add --no-cache --virtual=build-dependencies \
21
+ argp-standalone \
21
22
autoconf \
22
23
automake \
24
+ binutils \
23
25
boost-dev \
24
26
cmake \
27
+ confuse-dev \
25
28
curl-dev \
26
29
doxygen \
27
30
eudev-dev \
28
31
g++ \
29
32
gcc \
30
33
git \
34
+ gzip \
31
35
libcurl \
32
36
libftdi1-dev \
33
37
libressl-dev \
@@ -39,23 +43,18 @@ RUN \
39
43
mosquitto-dev \
40
44
musl-dev \
41
45
openzwave-dev \
42
- python3-dev \
43
46
pkgconf \
44
47
sqlite-dev \
45
48
tar \
46
49
zlib-dev && \
47
50
48
- # install telldus-core build-dependencies
49
- apk add --no-cache --virtual=telldus-build-dependencies \
50
- argp-standalone \
51
- binutils \
52
- confuse-dev \
53
- curl \
54
- gzip && \
55
-
56
- # add runtime packages required in build stage
51
+ # install runtime packages
57
52
apk add --no-cache \
58
- openzwave && \
53
+ curl \
54
+ eudev-libs \
55
+ libressl \
56
+ openzwave \
57
+ python3-dev && \
59
58
60
59
# link libftdi as the alpine guys named the libs wrong
61
60
ln -s /usr/lib/libftdi1.so /usr/lib/libftdi.so && \
@@ -66,11 +65,11 @@ RUN \
66
65
mkdir -p \
67
66
/tmp/telldus-core && \
68
67
curl -o /tmp/telldus-core.tar.gz -L \
69
- http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz && \
68
+ http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz && \
70
69
tar xf /tmp/telldus-core.tar.gz -C \
71
70
/tmp/telldus-core --strip-components=1 && \
72
71
curl -o /tmp/telldus-core/Doxyfile.in -L \
73
- https://raw.githubusercontent.com/telldus/telldus/master/telldus-core/Doxyfile.in && \
72
+ https://raw.githubusercontent.com/telldus/telldus/master/telldus-core/Doxyfile.in && \
74
73
cp /tmp/patches/Socket_unix.cpp /tmp/telldus-core/common/Socket_unix.cpp && \
75
74
cp /tmp/patches/ConnectionListener_unix.cpp /tmp/telldus-core/service/ConnectionListener_unix.cpp && \
76
75
cp /tmp/patches/CMakeLists.txt /tmp/telldus-core/CMakeLists.txt && \
85
84
ln -s /usr/lib/libtelldus-core.so.2 /usr/lib/libtelldus-core.so && \
86
85
87
86
# build domoticz
88
- git clone https://github.com/domoticz/domoticz.git /tmp/domoticz && \
87
+ git clone -b "${DOMOTICZ_VER}" https://github.com/domoticz/domoticz.git /tmp/domoticz && \
89
88
cd /tmp/domoticz && \
90
- git checkout "${DOMOTICZ_VER}" && \
91
89
cmake \
92
90
-DBUILD_SHARED_LIBS=True \
93
91
-DCMAKE_BUILD_TYPE=Release \
97
95
-DUSE_BUILTIN_MQTT=OFF \
98
96
-DUSE_BUILTIN_SQLITE=OFF \
99
97
-DUSE_STATIC_LIBSTDCXX=OFF \
100
- -DUSE_STATIC_OPENZWAVE=OFF && \
98
+ -DUSE_STATIC_OPENZWAVE=OFF \
99
+ -Wno-dev && \
101
100
make && \
102
101
make install && \
103
102
@@ -110,29 +109,22 @@ RUN \
110
109
| sort -u \
111
110
)" && \
112
111
113
- # install runtime dependencies
112
+ # install runtime packages
114
113
apk add --no-cache \
115
- curl \
116
- eudev-libs \
117
- libressl \
118
- python3 \
119
114
$RUNTIME_PACKAGES && \
120
115
121
- # cleanup build dependencies
122
- apk del --purge \
123
- build-dependencies \
124
- telldus-build-dependencies && \
125
-
126
116
# add abc to dialout and cron group trying to fix different GID for dialout group
127
117
usermod -a -G 16,20 abc && \
128
118
129
- # cleanup /tmp
119
+ # cleanup
120
+ apk del --purge \
121
+ build-dependencies && \
130
122
rm -rf \
131
123
/tmp/* \
132
124
/usr/lib/libftdi* \
133
125
/usr/include/ftdi.h
134
126
135
- # copy local files
127
+ # copy local files
136
128
COPY root/ /
137
129
138
130
# ports and volumes
0 commit comments