1
Fork 0

Add avahi-daemon

master
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
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
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"]

View File

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