forked from Foxi352/docker-knxd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (25 loc) · 1.16 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
##
## knxd
##
## Use latest Alpine based images as starting point
FROM alpine
## Choose between branches
ARG BRANCH=v0.14
COPY entrypoint.sh /
RUN apk add --no-cache build-base gcc abuild binutils binutils-doc gcc-doc git libev-dev automake autoconf libtool argp-standalone linux-headers libusb-dev cmake cmake-doc dev86 \
&& mkdir -p /usr/local/src && cd /usr/local/src \
&& git clone https://github.com/knxd/knxd.git --single-branch --branch $BRANCH \
&& cd knxd && ./bootstrap.sh \
&& ./configure --disable-systemd --enable-eibnetip --enable-eibnetserver --enable-eibnetiptunnel \
&& mkdir -p src/include/sys && ln -s /usr/lib/bcc/include/sys/cdefs.h src/include/sys \
&& make && make install && cd .. && rm -rf knxd && mkdir -p /etc/knxd \
&& addgroup -S knxd \
&& adduser -D -S -s /sbin/nologin -G knxd knxd \
&& chmod a+x /entrypoint.sh \
&& apk del --no-cache build-base abuild binutils binutils-doc gcc-doc git automake autoconf libtool argp-standalone cmake cmake-doc dev86
COPY knxd.ini /root
COPY knxd.ini /etc/knxd
EXPOSE 3672 6720 3671/udp
VOLUME /etc/knxd
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/etc/knxd/knxd.ini"]