-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 1.08 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
FROM alpine
ENV SAMBA_ADMIN_PASSWORD S@mba
ADD entrypoint.sh /usr/sbin/
ADD smb.conf /etc/samba/smb.conf
ADD samba.schema /etc/openldap/schema/samba.schema
ADD samba.ldif /etc/openldap/schema/samba.ldif
ADD slapd.conf /etc/openldap/slapd.conf
ADD initldap.ldif /etc/openldap/initldap.ldif
RUN apk update \
&& apk --no-cache --no-progress add bash git sudo zip acl attr make imagemagick \
samba openldap-clients openldap openldap-back-mdb \
perl perl-app-cpanminus perl-ldap perl-mojolicious perl-locale-maketext-lexicon \
&& adduser -G wheel -D -h /mnt -s /bin/bash admin \
&& echo "wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/wheel \
&& chmod 0440 /etc/sudoers.d/wheel \
&& chmod +x /usr/sbin/entrypoint.sh \
&& mkdir -p /root/web && git clone https://github.com/leejoneshane/WAM.git /root/web \
&& mkdir -p /root/etc && cp -Rp /etc /root/etc \
&& mkdir /web && cp -Rp /root/web/. /web
EXPOSE 137/udp 138/udp 139 445 8080
VOLUME ["/mnt", "/etc", "/web"]
ENTRYPOINT ["entrypoint.sh"]