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
|
2019-05-23 06:41:41 +02:00
|
|
|
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"]
|