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

14 lines
387 B
Docker

FROM debian:stretch
ADD . /opt/
WORKDIR "/opt"
RUN apt update && \
apt install -y python-dev python-pip libldap2-dev libsasl2-dev libssl-dev && \
pip install -e /opt/ -r /opt/requirements-stretch.txt pycodestyle passlib coveralls configparser in_place && \
/usr/bin/python2 /opt/setup.py install
VOLUME /etc/ldapcherry
EXPOSE 8080
CMD ["/usr/bin/python2", "/opt/init.py"]