1
0
mirror of https://github.com/kakwa/ldapcherry synced 2025-02-23 10:58:22 +01:00
ldapcherry/Dockerfile

22 lines
526 B
Docker
Raw Normal View History

2019-05-21 15:57:52 +08:00
FROM python:3-alpine
2019-05-21 15:01:02 +08: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 15:01:02 +08: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 21:05:21 +08:00
CMD ["ldapcherryd", "-c", "/etc/ldapcherry/ldapcherry.ini"]