Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Commit 8f58c64

Browse files
authored
Merge pull request #11 from linuxserver/stable-3.5877_alpine3.6
bump to alpine 3.6
2 parents a1e9e81 + 0bdd4bf commit 8f58c64

File tree

1 file changed

+22
-30
lines changed

1 file changed

+22
-30
lines changed

Dockerfile

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/alpine:3.5
1+
FROM lsiobase/alpine:3.6
22
MAINTAINER saarg
33

44
# package version
@@ -12,22 +12,26 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
1212
# Environment settings
1313
ENV HOME="/config"
1414

15-
# copy prebuilds
15+
# copy prebuilds
1616
COPY patches/ /
1717

1818
# install build dependencies
1919
RUN \
2020
apk add --no-cache --virtual=build-dependencies \
21+
argp-standalone \
2122
autoconf \
2223
automake \
24+
binutils \
2325
boost-dev \
2426
cmake \
27+
confuse-dev \
2528
curl-dev \
2629
doxygen \
2730
eudev-dev \
2831
g++ \
2932
gcc \
3033
git \
34+
gzip \
3135
libcurl \
3236
libftdi1-dev \
3337
libressl-dev \
@@ -39,23 +43,18 @@ RUN \
3943
mosquitto-dev \
4044
musl-dev \
4145
openzwave-dev \
42-
python3-dev \
4346
pkgconf \
4447
sqlite-dev \
4548
tar \
4649
zlib-dev && \
4750

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
5752
apk add --no-cache \
58-
openzwave && \
53+
curl \
54+
eudev-libs \
55+
libressl \
56+
openzwave \
57+
python3-dev && \
5958

6059
# link libftdi as the alpine guys named the libs wrong
6160
ln -s /usr/lib/libftdi1.so /usr/lib/libftdi.so && \
@@ -66,11 +65,11 @@ RUN \
6665
mkdir -p \
6766
/tmp/telldus-core && \
6867
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 && \
7069
tar xf /tmp/telldus-core.tar.gz -C \
7170
/tmp/telldus-core --strip-components=1 && \
7271
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 && \
7473
cp /tmp/patches/Socket_unix.cpp /tmp/telldus-core/common/Socket_unix.cpp && \
7574
cp /tmp/patches/ConnectionListener_unix.cpp /tmp/telldus-core/service/ConnectionListener_unix.cpp && \
7675
cp /tmp/patches/CMakeLists.txt /tmp/telldus-core/CMakeLists.txt && \
@@ -85,9 +84,8 @@ RUN \
8584
ln -s /usr/lib/libtelldus-core.so.2 /usr/lib/libtelldus-core.so && \
8685

8786
# 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 && \
8988
cd /tmp/domoticz && \
90-
git checkout "${DOMOTICZ_VER}" && \
9189
cmake \
9290
-DBUILD_SHARED_LIBS=True \
9391
-DCMAKE_BUILD_TYPE=Release \
@@ -97,7 +95,8 @@ RUN \
9795
-DUSE_BUILTIN_MQTT=OFF \
9896
-DUSE_BUILTIN_SQLITE=OFF \
9997
-DUSE_STATIC_LIBSTDCXX=OFF \
100-
-DUSE_STATIC_OPENZWAVE=OFF && \
98+
-DUSE_STATIC_OPENZWAVE=OFF \
99+
-Wno-dev && \
101100
make && \
102101
make install && \
103102

@@ -110,29 +109,22 @@ RUN \
110109
| sort -u \
111110
)" && \
112111

113-
# install runtime dependencies
112+
# install runtime packages
114113
apk add --no-cache \
115-
curl \
116-
eudev-libs \
117-
libressl \
118-
python3 \
119114
$RUNTIME_PACKAGES && \
120115

121-
# cleanup build dependencies
122-
apk del --purge \
123-
build-dependencies \
124-
telldus-build-dependencies && \
125-
126116
# add abc to dialout and cron group trying to fix different GID for dialout group
127117
usermod -a -G 16,20 abc && \
128118

129-
# cleanup /tmp
119+
# cleanup
120+
apk del --purge \
121+
build-dependencies && \
130122
rm -rf \
131123
/tmp/* \
132124
/usr/lib/libftdi* \
133125
/usr/include/ftdi.h
134126

135-
# copy local files
127+
# copy local files
136128
COPY root/ /
137129

138130
# ports and volumes

0 commit comments

Comments
 (0)