monkey/docker/Dockerfile

25 lines
722 B
Docker
Raw Normal View History

2018-11-27 19:20:17 +08:00
FROM debian:stretch-slim
2018-05-04 23:23:10 +08:00
LABEL MAINTAINER="theonlydoo <theonlydoo@gmail.com>"
2020-04-01 20:33:27 +08:00
ARG RELEASE=1.8.0
ARG DEBIAN_FRONTEND=noninteractive
2018-11-27 05:03:45 +08:00
EXPOSE 5000
2018-05-04 23:23:10 +08:00
WORKDIR /app
ADD https://github.com/guardicore/monkey/releases/download/${RELEASE}/infection_monkey_deb.${RELEASE}.tgz .
2018-05-04 23:23:10 +08:00
RUN tar xvf infection_monkey_deb.${RELEASE}.tgz \
&& apt-get -yqq update \
&& apt-get -yqq upgrade \
&& apt-get -yqq install python-pip \
2018-11-27 04:52:35 +08:00
python-dev \
2018-11-27 19:19:26 +08:00
&& dpkg -i *.deb \
&& rm -f *.deb *.tgz
2018-05-04 23:23:10 +08:00
2018-11-30 00:20:55 +08:00
WORKDIR /var/monkey
ENTRYPOINT ["/var/monkey/monkey_island/bin/python/bin/python"]
CMD ["/var/monkey/monkey_island.py"]