forked from instantlinux/docker-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (34 loc) · 1.21 KB
/
Dockerfile
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
FROM alpine:3.16
MAINTAINER Rich Braun "[email protected]"
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.license=GPL-3.0 \
org.label-schema.name=samba-dc \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools
ENV ADMIN_PASSWORD_SECRET=samba-admin-password \
ALLOW_DNS_UPDATES=secure \
BIND_INTERFACES_ONLY=yes \
DOMAIN_ACTION=provision \
DOMAIN_LOGONS=yes \
DOMAIN_MASTER=no \
INTERFACES="lo eth0" \
LOG_LEVEL=1 \
MODEL=standard \
NETBIOS_NAME= \
REALM=ad.example.com \
SERVER_STRING="Samba Domain Controller" \
TZ=UTC \
WINBIND_USE_DEFAULT_DOMAIN=yes \
WORKGROUP=AD
ARG SAMBA_VERSION=4.15.7-r0
COPY *.conf.j2 /root/
COPY entrypoint.sh /usr/local/bin/
COPY chrony.conf /etc/chrony/
RUN apk add --update --no-cache krb5 ldb-tools samba-dc=$SAMBA_VERSION tdb \
bind bind-libs bind-tools libcrypto1.1 libxml2 tzdata chrony && \
chmod 0755 /usr/local/bin/entrypoint.sh
VOLUME /etc/samba /var/lib/samba
EXPOSE 53 53/udp 88 88/udp 135 137-138/udp 139 389 389/udp 445 464 464/udp 636 3268-3269 49152-65535
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]