24 lines
468 B
Docker
24 lines
468 B
Docker
# Base image
|
|
ARG ARCH=amd64
|
|
FROM $ARCH/alpine:3.10
|
|
|
|
# Prepare multi arch build
|
|
COPY qemu-* /usr/bin/
|
|
|
|
# Maintainer
|
|
MAINTAINER Florian Schwab <me@ydkn.io>
|
|
|
|
# install packages
|
|
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
|
|
|
|
# cleanup
|
|
RUN rm -f /usr/bin/qemu-*-static /app/qemu-*-static
|
|
|
|
# volumes
|
|
VOLUME ["/etc/avahi/services"]
|
|
|
|
# default command
|
|
CMD ["avahi-daemon"]
|