Dockerfile 389 Bytes
Newer Older
1 2 3 4 5 6 7
FROM python:3.4

MAINTAINER Daniele Venzano <venza@brownhat.org>

RUN mkdir -p /opt/zoe
WORKDIR /opt/zoe

8 9
RUN apt-get update && apt-get install -y libldap2-dev libsasl2-dev && apt-get clean

10 11 12
COPY . /opt/zoe
RUN pip install --no-cache-dir -r requirements.txt

13 14
RUN echo 'admin,admin,admin' > /opt/zoe/zoepass.csv

15 16
VOLUME /etc/zoe/

17
RUN python3 ./zoe-api.py --write-config /etc/zoe/zoe.conf
18