24 lines
459 B
Docker
24 lines
459 B
Docker
# Base image
|
|
ARG ARCH=amd64
|
|
FROM $ARCH/alpine:3.9
|
|
|
|
# Prepare multi arch build
|
|
COPY qemu-* /usr/bin/
|
|
|
|
# Maintainer
|
|
MAINTAINER Florian Schwab <me@ydkn.io>
|
|
|
|
# upgrade system
|
|
RUN apk --no-cache --no-progress upgrade
|
|
|
|
# install avahi
|
|
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
|
|
|
|
# volumes
|
|
VOLUME ["/etc/avahi/services"]
|
|
|
|
# default command
|
|
CMD ["avahi-daemon"]
|