simplify image

This commit is contained in:
Florian Schwab 2018-12-02 22:55:21 +01:00
parent a3c25670bc
commit be4d890780
3 changed files with 2 additions and 19 deletions

View file

@ -5,20 +5,13 @@ MAINTAINER Florian Schwab <me@ydkn.de>
RUN apk --no-cache --no-progress upgrade
# install avahi
RUN apk --no-cache --no-progress add runit tini avahi avahi-tools
RUN apk --no-cache --no-progress add avahi avahi-tools
# disable d-bus
RUN sed -i 's/.*enable-dbus.*/enable-dbus=no/' /etc/avahi/avahi-daemon.conf
# copy scripts
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
COPY service /etc/service
# volumes
VOLUME ["/etc/avahi"]
# entrypoint
ENTRYPOINT ["tini", "--", "docker-entrypoint.sh"]
# default command
CMD ["runsvdir", "/etc/service"]
CMD ["avahi-daemon"]

View file

@ -1,7 +0,0 @@
#!/bin/sh -e
# set environment
export HOME=/tmp
# run
exec $@

View file

@ -1,3 +0,0 @@
#!/bin/sh -e
/usr/sbin/avahi-daemon