-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (31 loc) · 934 Bytes
/
Dockerfile
File metadata and controls
41 lines (31 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:24.04
LABEL org.opencontainers.image.source https://github.com/beezy-dev/smb
ENV DEBIAN_FRONTEND=noninteractive
RUN set -eu && \
apt-get update && \
apt-get install -y --no-install-recommends \
tini \
bash \
samba \
smbclient \
tzdata \
locales && \
rm -rf /var/lib/apt/lists/* && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
userdel -r ubuntu && \
groupadd -r smb && \
rm -f /etc/samba/smb.conf && \
apt-get clean
ENV LANG=en_US.utf8
COPY --chmod=755 samba.sh /usr/bin/samba.sh
COPY --chmod=664 smb.conf /etc/samba/smb.default
VOLUME /storage
EXPOSE 139 445
ENV NAME="Data"
ENV USER="samba"
ENV PASS="secret"
ENV UID=1000
ENV GID=1000
ENV RW=true
# HEALTHCHECK --interval=60s --timeout=15s CMD smbclient --configfile=/etc/samba.conf -L \\localhost -U % -m SMB3
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/bin/samba.sh"]