Try to build up a samba server in docker.
This commit is contained in:
24
networking/Dockerfile
Normal file
24
networking/Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user