-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (38 loc) · 920 Bytes
/
Copy pathDockerfile
File metadata and controls
43 lines (38 loc) · 920 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
42
43
FROM ubuntu:24.04
# https://nowsci.com/samba-domain
ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get update && \
apt-get install -y \
pkg-config \
attr \
acl \
file \
dos2unix \
samba \
samba-common \
samba-dsdb-modules \
smbclient \
ldap-utils \
winbind \
libnss-winbind \
libpam-winbind \
krb5-user \
krb5-kdc \
supervisor \
ldb-tools \
vim-tiny \
curl \
dnsutils \
iproute2 \
iputils-ping \
ntp && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/ && \
rm -rf /tmp/* /var/tmp/*
VOLUME [ "/var/lib/samba", "/etc/samba/external", "/export/storage" ]
RUN mkdir -p /files
COPY ./files/ /files/
RUN chmod 755 /files/init.sh /files/domain.sh
CMD /files/init.sh