cleanup
This commit is contained in:
parent
72832d0c1c
commit
bbedb041f2
2 changed files with 13 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,11 +1,17 @@
|
|||
FROM alpine:3.8
|
||||
MAINTAINER Florian Schwab <me@ydkn.de>
|
||||
|
||||
# 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"]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue