forked from stgraber/samba4-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (28 loc) · 798 Bytes
/
Dockerfile
File metadata and controls
32 lines (28 loc) · 798 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
FROM python:alpine
ARG UID=2541
ENV LDAP_DOMAIN=""
ENV LDAP_SERVER=""
ENV LDAP_DN=""
ENV URL_PREFIX=""
COPY . /usr/share/samba4-manager/
RUN adduser --home /usr/share/samba4-manager/ \
--disabled-password \
--no-create-home \
--uid ${UID} \
abc \
&& cd /usr/share/samba4-manager/ \
&& chown -R abc:root . \
&& chmod -R o-rwx . \
&& chmod -R -w . \
&& chown root:root docker-entrypoint.sh \
&& chmod 0500 docker-entrypoint.sh \
&& apk --no-cache add openldap-clients \
&& apk --no-cache --virtual .build-deps add \
gcc \
musl-dev \
openldap-dev \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del .build-deps
VOLUME /etc/samba4-manager
EXPOSE 8080
ENTRYPOINT [ "/usr/share/samba4-manager/docker-entrypoint.sh" ]