-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
32 lines (23 loc) · 948 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM uhhiss/broker-docker:latest
LABEL Maintainer="{haas,wilkens}@informatik.uni-hamburg.de"
EXPOSE 21 22 23 25 80 110 143 443 587 993 995
RUN echo "===> Installing build-dependencies..." \
&& apk add --no-cache -t .build-deps \
g++ \
python3-dev \
libffi-dev \
openssl-dev
WORKDIR /app
COPY requirements.txt /app
RUN echo "===> Installing python dependencies via pip..." \
&& pip3 install --upgrade -r requirements.txt
RUN echo "===> Purging build-dependencies..." \
&& apk del --purge .build-deps
RUN echo "===> Preparing honeygrove runtime folders..." \
&& bash -c "mkdir -p /var/honeygrove/{logs,resources/{quarantine,honeytoken_files}}"
COPY resources /var/honeygrove/resources
RUN echo "===> Copying honeygrove sources..."
COPY honeygrove /app/honeygrove
VOLUME ["/var/honeygrove/logs", "/var/honeygrove/quarantine", "/var/honeygrove/honeytoken_files"]
ENTRYPOINT ["python3"]
CMD ["-m", "honeygrove"]