This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
email/mailcow/data/Dockerfiles/ldap/Dockerfile
Georg 98fa66b5ad
Init MC update + Dovecot/SOGo LDAP configuration
Signed-off-by: Georg <georg@lysergic.dev>
2021-09-13 09:40:35 +02:00

17 lines
466 B
Docker

FROM python:3-alpine
RUN apk --no-cache add build-base openldap-dev python2-dev python3-dev
RUN pip3 install python-ldap sqlalchemy requests
COPY templates ./templates
COPY api.py filedb.py syncer.py ./
ADD syscid-ca.crt /usr/local/share/ca-certificates/syscid-ca.crt
RUN chmod 644 /usr/local/share/ca-certificates/syscid-ca.crt && update-ca-certificates
VOLUME [ "/db" ]
VOLUME [ "/conf/dovecot" ]
VOLUME [ "/conf/sogo" ]
ENTRYPOINT [ "python3", "syncer.py" ]