17 lines
466 B
Docker
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" ]
|