1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-24 10:14:31 +01:00
ldapcherry/Dockerfile

22 lines
526 B
Docker
Raw Normal View History

2019-05-21 09:57:52 +02:00
FROM python:3-alpine
2019-05-21 09:01:02 +02:00
WORKDIR /usr/src/app
ADD . /usr/src/app
ENV DATAROOTDIR /usr/share
ENV SYSCONFDIR /etc
ENV AD_LOGIN administrator
ENV PASSWORD password
2019-05-21 09:01:02 +02:00
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
2019-07-08 15:05:21 +02:00
CMD ["ldapcherryd", "-c", "/etc/ldapcherry/ldapcherry.ini"]