moved avahi-start to seperate directory

This commit is contained in:
Andre
2017-03-08 21:23:04 +01:00
committed by GitHub
parent 9e10615346
commit e4bd6c8946

View File

@@ -9,15 +9,20 @@ RUN curl -sL https://deb.nodesource.com/setup_4.x | bash
RUN apt-get install -y build-essential python nodejs RUN apt-get install -y build-essential python nodejs
RUN mkdir -p /opt/iobroker/ && chmod 777 /opt/iobroker/ RUN mkdir -p /opt/iobroker/ && chmod 777 /opt/iobroker/
RUN mkdir -p /opt/scripts/ && chmod 777 /opt/scripts/
WORKDIR /opt/scripts/
ADD scripts/avahi-start.sh avahi-start.sh
RUN chmod +x avahi-start.sh
RUN mkdir /var/run/dbus/
WORKDIR /opt/iobroker/ WORKDIR /opt/iobroker/
RUN npm install iobroker --unsafe-perm && echo $(hostname) > .install_host RUN npm install iobroker --unsafe-perm && echo $(hostname) > .install_host
ADD scripts/startup.sh startup.sh ADD scripts/startup.sh startup.sh
ADD scripts/avahi-start.sh avahi-start.sh RUN chmod +x startup.sh
RUN chmod +x startup.sh avahi-start.sh
RUN mkdir /var/run/dbus/
CMD ["sh", "/opt/iobroker/startup.sh"] CMD ["sh", "/opt/iobroker/startup.sh"]