From caf690bc836f213fa80121f9f66352245b9f2f61 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sat, 18 Apr 2020 17:55:47 +0400 Subject: [PATCH] Add avahi-daemon --- Dockerfile | 10 +++------- entrypoint.sh | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index cbef0e3..7661370 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,15 @@ FROM alpine MAINTAINER Vladimir Hodakov -RUN apk add --no-cache tini bash samba-common-tools samba-server +RUN apk add --no-cache tini bash samba-common-tools samba-server avahi avahi-tools COPY entrypoint.sh /usr/local/bin/entrypoint RUN ["chmod", "+x", "/usr/local/bin/entrypoint"] -VOLUME /etc/samba \ +VOLUME /etc/avahi/services/ \ + /etc/samba \ /var/lib/samba \ /data -EXPOSE 137/udp \ - 138/udp \ - 139/tcp \ - 445/tcp - CMD ["/sbin/tini", "--", "/usr/local/bin/entrypoint"] diff --git a/entrypoint.sh b/entrypoint.sh index 2bf662e..22ac74f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,4 +11,5 @@ while IFS='=' read -r name value ; do done < <(env) nmbd -D +avahi-daemon smbd -FS --no-process-group