diff --git a/Dockerfile b/Dockerfile index 5ad7787..a1fb4b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,14 @@ -FROM python:3-alpine +FROM alpine:latest WORKDIR /usr/src/app ADD . /usr/src/app ENV DATAROOTDIR /usr/share ENV SYSCONFDIR /etc -ENV AD_LOGIN administrator -ENV PASSWORD password -RUN apk add --no-cache libldap && \ - apk add --no-cache --virtual build-dependencies build-base yaml-dev openldap-dev && \ - python setup.py install && \ - apk del build-dependencies && \ +RUN apk add --no-cache py3-pip py3-pyldap && \ + python3 setup.py install && \ + \ cp -v conf/* /etc/ldapcherry && \ adduser -S ldapcherry && \ rm -rf /usr/src/app diff --git a/conf/roles.yml b/conf/roles.yml index 61970e5..77358cc 100644 --- a/conf/roles.yml +++ b/conf/roles.yml @@ -25,12 +25,12 @@ # ad: # - Administrators -developpers: +developers: display_name: Developpers description: Developpers of the system backends_groups: ldap: - - cn=developpers,ou=Group,dc=example,dc=org + - cn=developers,ou=Group,dc=example,dc=org - cn=users,ou=Group,dc=example,dc=org users: