1
- FROM lsiobase/alpine:3.5
1
+ FROM lsiobase/alpine:3.6
2
2
MAINTAINER saarg
3
3
4
4
# set version label
@@ -15,16 +15,20 @@ COPY patches/ /
15
15
# install build dependencies
16
16
RUN \
17
17
apk add --no-cache --virtual=build-dependencies \
18
+ argp-standalone \
18
19
autoconf \
19
20
automake \
21
+ binutils \
20
22
boost-dev \
21
23
cmake \
24
+ confuse-dev \
22
25
curl-dev \
23
26
doxygen \
24
27
eudev-dev \
25
28
g++ \
26
29
gcc \
27
30
git \
31
+ gzip \
28
32
libcurl \
29
33
libftdi1-dev \
30
34
libressl-dev \
@@ -40,16 +44,11 @@ RUN \
40
44
tar \
41
45
zlib-dev && \
42
46
43
- # install telldus-core build-dependencies
44
- apk add --no-cache --virtual=telldus-build-dependencies \
45
- argp-standalone \
46
- binutils \
47
- confuse-dev \
48
- curl \
49
- gzip && \
50
-
51
- # add runtime packages required in build stage
47
+ # install runtime packages
52
48
apk add --no-cache \
49
+ curl \
50
+ eudev-libs \
51
+ libressl \
53
52
python3-dev && \
54
53
55
54
# link libftdi as the alpine guys named the libs wrong
@@ -61,11 +60,11 @@ RUN \
61
60
mkdir -p \
62
61
/tmp/telldus-core && \
63
62
curl -o /tmp/telldus-core.tar.gz -L \
64
- http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz && \
63
+ http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz && \
65
64
tar xf /tmp/telldus-core.tar.gz -C \
66
65
/tmp/telldus-core --strip-components=1 && \
67
66
curl -o /tmp/telldus-core/Doxyfile.in -L \
68
- https://raw.githubusercontent.com/telldus/telldus/master/telldus-core/Doxyfile.in && \
67
+ https://raw.githubusercontent.com/telldus/telldus/master/telldus-core/Doxyfile.in && \
69
68
cp /tmp/patches/Socket_unix.cpp /tmp/telldus-core/common/Socket_unix.cpp && \
70
69
cp /tmp/patches/ConnectionListener_unix.cpp /tmp/telldus-core/service/ConnectionListener_unix.cpp && \
71
70
cp /tmp/patches/CMakeLists.txt /tmp/telldus-core/CMakeLists.txt && \
89
88
pkgconfigdir="usr/lib/pkgconfig/" \
90
89
PREFIX=/usr \
91
90
sysconfdir=etc/openzwave \
92
- install && \
91
+ install && \
93
92
94
93
# build domoticz
95
94
git clone https://github.com/domoticz/domoticz.git /tmp/domoticz && \
@@ -103,7 +102,8 @@ RUN \
103
102
-DUSE_BUILTIN_MQTT=OFF \
104
103
-DUSE_BUILTIN_SQLITE=OFF \
105
104
-DUSE_STATIC_LIBSTDCXX=OFF \
106
- -DUSE_STATIC_OPENZWAVE=OFF && \
105
+ -DUSE_STATIC_OPENZWAVE=OFF \
106
+ -Wno-dev && \
107
107
make && \
108
108
make install && \
109
109
@@ -116,23 +116,16 @@ RUN \
116
116
| sort -u \
117
117
)" && \
118
118
119
- # install runtime dependencies
119
+ # install runtime packages
120
120
apk add --no-cache \
121
- curl \
122
- eudev-libs \
123
- libressl \
124
121
$RUNTIME_PACKAGES && \
125
122
126
- # cleanup build dependencies
127
- apk del --purge \
128
- build-dependencies \
129
- telldus-build-dependencies && \
130
-
131
-
132
123
# add abc to dialout and cron group trying to fix different GID for dialout group
133
124
usermod -a -G 16,20 abc && \
134
125
135
- # cleanup /tmp
126
+ # cleanup
127
+ apk del --purge \
128
+ build-dependencies && \
136
129
rm -rf \
137
130
/tmp/* \
138
131
/usr/lib/libftdi* \
0 commit comments