1
0
mirror of https://github.com/kakwa/ldapcherry synced 2025-02-22 18:38:22 +01:00
ldapcherry/Dockerfile
Christian Connert 21c8438587 Revert "read credentials from environment variables"
This reverts commit 7af125550c054fb300c1868f22da70cd13235dae.
2019-07-09 15:19:14 +02:00

20 lines
485 B
Docker

FROM python:3-alpine
WORKDIR /usr/src/app
ADD . /usr/src/app
ENV DATAROOTDIR /usr/share
ENV SYSCONFDIR /etc
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 && \
cp -v conf/* /etc/ldapcherry && \
adduser -S ldapcherry && \
rm -rf /usr/src/app
USER ldapcherry
CMD [ "ldapcherryd", "-c", "/etc/ldapcherry/ldapcherry.ini", "-D" ]