Try to build up a samba server in docker.

This commit is contained in:
chsteinle
2021-11-24 10:26:42 +01:00
parent b6c1e7bfbf
commit 9e98b78e78
3 changed files with 64 additions and 1 deletions

24
networking/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM alpine
ARG VERSION
RUN set -xe && \
apk add --no-cache \
samba-server \
samba-common-tools \
VOLUME /share
VOLUME /etc/samba
COPY smb.conf /etc/samba/
EXPOSE 137/udp 138/udp 139/tcp 445/tcp
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
CMD nmbd --daemon && \
smbd --foreground \
--log-stdout \
--no-process-group \
--configfile /etc/samba/smb.conf