1

Add avahi-daemon

This commit is contained in:
Vladimir Hodakov 2020-04-18 17:55:47 +04:00
parent 9f31e8d6c1
commit caf690bc83
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6
2 changed files with 4 additions and 7 deletions

View File

@ -1,19 +1,15 @@
FROM alpine FROM alpine
MAINTAINER Vladimir Hodakov <vladimir@hodakov.me> MAINTAINER Vladimir Hodakov <vladimir@hodakov.me>
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 COPY entrypoint.sh /usr/local/bin/entrypoint
RUN ["chmod", "+x", "/usr/local/bin/entrypoint"] RUN ["chmod", "+x", "/usr/local/bin/entrypoint"]
VOLUME /etc/samba \ VOLUME /etc/avahi/services/ \
/etc/samba \
/var/lib/samba \ /var/lib/samba \
/data /data
EXPOSE 137/udp \
138/udp \
139/tcp \
445/tcp
CMD ["/sbin/tini", "--", "/usr/local/bin/entrypoint"] CMD ["/sbin/tini", "--", "/usr/local/bin/entrypoint"]

View File

@ -11,4 +11,5 @@ while IFS='=' read -r name value ; do
done < <(env) done < <(env)
nmbd -D nmbd -D
avahi-daemon
smbd -FS --no-process-group smbd -FS --no-process-group