add samba with old data

This commit is contained in:
ai-dev
2025-10-10 16:11:46 +02:00
parent e96148e311
commit d6a16358ff
25 changed files with 696 additions and 0 deletions

21
samba/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
ARG BUILD_FROM
FROM $BUILD_FROM
# Add env
ENV LANG C.UTF-8
# Setup base
RUN \
apk add --no-cache samba \
&& mkdir -p /var/lib/samba \
&& touch \
/etc/samba/lmhosts \
/var/lib/samba/account_policy.tdb \
/var/lib/samba/registry.tdb \
/var/lib/samba/winbindd_idmap.tdb
# Copy data
COPY rootfs /
HEALTHCHECK \
CMD smbclient -L '\\localhost' -U '%' -m SMB3