mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-24 10:14:31 +01:00
22 lines
534 B
Docker
22 lines
534 B
Docker
FROM python:3-alpine
|
|
|
|
WORKDIR /usr/src/app
|
|
ADD . /usr/src/app
|
|
|
|
ENV DATAROOTDIR /usr/share
|
|
ENV SYSCONFDIR /etc
|
|
ENV AD_LOGIN administrator
|
|
ENV PASSWORD password
|
|
|
|
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" ]
|