diff --git a/Dockerfile b/Dockerfile index ef72b6e..a5ce08b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ MAINTAINER Andre Germann ENV DEBIAN_FRONTEND noninteractive -RUN apt-get update && apt-get install -y apt-utils curl +RUN apt-get update && apt-get install -y apt-utils curl avahi-daemon RUN curl -sL https://deb.nodesource.com/setup_4.x | bash RUN apt-get install -y build-essential python nodejs @@ -15,7 +15,9 @@ WORKDIR /opt/iobroker/ RUN npm install iobroker --unsafe-perm && echo $(hostname) > .install_host ADD scripts/startup.sh startup.sh -RUN chmod +x startup.sh +ADD scripts/avahi-start.sh avahi-start.sh +RUN chmod +x startup.sh avahi-start.sh +RUN mkdir /var/run/dbus/ CMD ["sh", "/opt/iobroker/startup.sh"]