From bbedb041f24100ea0d4c39094cd8db251e3754ba Mon Sep 17 00:00:00 2001 From: Florian Schwab Date: Fri, 28 Sep 2018 03:36:11 +0200 Subject: [PATCH] cleanup --- Dockerfile | 12 +++++++++--- README.md | 7 ++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7521658..5946ae6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,17 @@ FROM alpine:3.8 MAINTAINER Florian Schwab +# update system +RUN apk --no-cache --no-progress upgrade + # install avahi -RUN apk add --no-cache 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 -# set entrypoint -ENTRYPOINT ["avahi-daemon"] +# volumes +VOLUME ["/etc/avahi"] + +# default command +CMD ["avahi-daemon"] diff --git a/README.md b/README.md index 1b5a68b..6439492 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,11 @@ docker rm $(docker ps -ql) ``` ## Modify configuration -Edit `avahi-daemon.conf` to you needs. -Edit the services in the `services` directory to you needs. -# Start the container +Edit `avahi-daemon.conf` to your needs. +Edit the services in the `services` directory to your needs. + +## Start the container ```bash docker run -d --restart always --net=host -v $(pwd)/avahi:/etc/avahi ydkn/avahi:latest