mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 10:29:00 +02:00
moved avahi-start to seperate directory
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user