Dockerfile 388 Bytes
Newer Older
hxquangnhat's avatar
hxquangnhat committed
1
FROM python:3.4
2

hxquangnhat's avatar
hxquangnhat committed
3
MAINTAINER Daniele Venzano <venza@brownhat.org>
4

hxquangnhat's avatar
hxquangnhat committed
5
RUN mkdir -p /opt/zoe
qhoangxuan's avatar
qhoangxuan committed
6
WORKDIR /opt/zoe
7

hxquangnhat's avatar
hxquangnhat committed
8 9 10 11 12
RUN apt-get update && apt-get install -y libldap2-dev libsasl2-dev && apt-get clean

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

qhoangxuan's avatar
qhoangxuan committed
13
RUN echo 'admin,admin,admin' > /opt/zoe/zoepass.csv
14

hxquangnhat's avatar
hxquangnhat committed
15
VOLUME /etc/zoe/
16

hxquangnhat's avatar
hxquangnhat committed
17
RUN python3 ./zoe-api.py --write-config /etc/zoe/zoe.conf