start split for each OS directory to keep debian functional

This commit is contained in:
diginc 2016-02-13 13:28:10 -06:00
parent 972a6c3c39
commit 2cfb144fe5
4 changed files with 10 additions and 2 deletions

View File

@ -35,7 +35,7 @@ RUN chmod +x /usr/local/bin/*.sh
# Fix for docker
RUN grep -q '^user=root' || echo 'user=root' >> /etc/dnsmasq.conf
COPY ./start.sh /
COPY ./alpine/start.sh /
EXPOSE 53 53/udp
EXPOSE 80

View File

@ -41,6 +41,6 @@ RUN chmod +x /usr/local/bin/*.sh
# Fix just for docker
RUN grep -q '^user=root' || echo 'user=root' >> /etc/dnsmasq.conf
COPY ./start.sh /
COPY ./debian/start.sh /
ENTRYPOINT ["/tini", "--"]
CMD /start.sh

8
debian/start.sh vendored Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
service lighttpd start
gravity.sh # dnsmasq start included
tail -f /var/log/lighttpd/*.log /var/log/pihole.log