From ebe862ccdb313d0fdedf1bd4af69780579141a9e Mon Sep 17 00:00:00 2001 From: smacz Date: Mon, 25 Mar 2019 22:52:00 -0400 Subject: [PATCH] Continue to tweak Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 77dd3d6..13c3274 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM ubuntu:16.04 -ADD . . -RUN apt update && apt install -y python3 python3-pip && pip3 install -e . -r requirements.txt && pip3 install pycodestyle passlib coveralls && /usr/bin/python3 setup.py +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.txt && pip install pycodestyle passlib coveralls && /usr/bin/python2 /opt/setup.py install VOLUME /etc/ldapcherry EXPOSE 80