Skip to content

Commit d504ba4

Browse files
committed
tried some stuff with avahi, but broke it even more
1 parent e31c9fa commit d504ba4

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎Dockerfile.common‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,19 @@ RUN npm install
7070
# Start #
7171
##################################################
7272

73+
#tmp
74+
USER root
75+
#RUN apt-get install -y avahi-daemon
76+
RUN sed -i "s/#enable-dbus=yes/enable-dbus=yes/" /etc/avahi/avahi-daemon.conf
77+
USER app
78+
#tmp
79+
7380
WORKDIR /home/app/homebridge
7481

7582
EXPOSE 51826
7683

77-
CMD ["npm", "run", "start"]
84+
#CMD ["npm", "run", "start"]
85+
ADD run.sh /home/app/homebridge/run.sh
86+
USER root
87+
CMD ["/home/app/homebridge/run.sh"]
88+

0 commit comments

Comments
 (0)