forked from home-assistant/addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (54 loc) · 1.52 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
ARG BUILD_FROM
FROM $BUILD_FROM
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install deCONZ dependencies
ARG BUILD_ARCH
RUN \
set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
dwm \
iproute2 \
iputils-ping \
kmod \
libcap2-bin \
libqt5core5a \
libqt5gui5 \
libqt5network5 \
libqt5serialport5 \
libqt5sql5 \
libqt5websockets5 \
libqt5widgets5 \
libqt5qml5 \
lsof \
netcat-traditional \
nginx \
novnc \
sqlite3 \
tigervnc-common \
tigervnc-standalone-server \
udev \
wget \
xfonts-base \
xfonts-scalable \
&& rm -rf /var/lib/apt/lists/*
# Install deCONZ
ARG DECONZ_VERSION
RUN \
set -x \
&& if [ "${BUILD_ARCH}" = "armhf" ]; \
then \
curl -q -L -o /deconz.deb http://deconz.dresden-elektronik.de/raspbian/stable/deconz-${DECONZ_VERSION}-qt5.deb; \
elif [ "${BUILD_ARCH}" = "aarch64" ]; \
then \
curl -q -L -o /deconz.deb http://deconz.dresden-elektronik.de/debian/stable/deconz_${DECONZ_VERSION}-debian-buster-stable_arm64.deb; \
else \
curl -q -L -o /deconz.deb http://deconz.dresden-elektronik.de/ubuntu/stable/deconz-${DECONZ_VERSION}-qt5.deb; \
fi \
&& dpkg -i /deconz.deb \
&& rm -f /deconz.deb \
&& chown root:root /usr/bin/deCONZ* \
&& sed -i 's/\/root/\/data/' /etc/passwd
COPY rootfs /