simplify image
This commit is contained in:
parent
a3c25670bc
commit
be4d890780
3 changed files with 2 additions and 19 deletions
11
Dockerfile
11
Dockerfile
|
@ -5,20 +5,13 @@ MAINTAINER Florian Schwab <me@ydkn.de>
|
||||||
RUN apk --no-cache --no-progress upgrade
|
RUN apk --no-cache --no-progress upgrade
|
||||||
|
|
||||||
# install avahi
|
# 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
|
# disable d-bus
|
||||||
RUN sed -i 's/.*enable-dbus.*/enable-dbus=no/' /etc/avahi/avahi-daemon.conf
|
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
|
# volumes
|
||||||
VOLUME ["/etc/avahi"]
|
VOLUME ["/etc/avahi"]
|
||||||
|
|
||||||
# entrypoint
|
|
||||||
ENTRYPOINT ["tini", "--", "docker-entrypoint.sh"]
|
|
||||||
|
|
||||||
# default command
|
# default command
|
||||||
CMD ["runsvdir", "/etc/service"]
|
CMD ["avahi-daemon"]
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
# set environment
|
|
||||||
export HOME=/tmp
|
|
||||||
|
|
||||||
# run
|
|
||||||
exec $@
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
/usr/sbin/avahi-daemon
|
|
Loading…
Reference in a new issue