Add avahi-daemon
This commit is contained in:
parent
9f31e8d6c1
commit
caf690bc83
10
Dockerfile
10
Dockerfile
@ -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"]
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user