2018-05-04 23:23:10 +08:00
|
|
|
FROM debian:jessie-slim
|
|
|
|
|
|
|
|
LABEL MAINTAINER="theonlydoo <theonlydoo@gmail.com>"
|
|
|
|
|
2018-11-27 04:50:47 +08:00
|
|
|
ARG RELEASE=1.6
|
|
|
|
|
2018-05-04 23:23:10 +08:00
|
|
|
WORKDIR /app
|
|
|
|
|
2018-11-27 04:50:47 +08:00
|
|
|
ADD https://github.com/guardicore/monkey/releases/download/${RELEASE}/infection_monkey_deb.${RELEASE}.tgz .
|
2018-05-04 23:23:10 +08:00
|
|
|
|
2018-11-27 04:50:47 +08:00
|
|
|
RUN tar xvf infection_monkey_deb.${RELEASE}.tgz \
|
|
|
|
&& apt-get -yqq update \
|
|
|
|
&& apt-get -yqq upgrade \
|
|
|
|
&& apt-get -yqq install python-pip \
|
|
|
|
libssl-dev \
|
|
|
|
supervisor \
|
|
|
|
&& dpkg -i *.deb
|
2018-05-04 23:23:10 +08:00
|
|
|
|
|
|
|
COPY stack.conf /etc/supervisor/conf.d/stack.conf
|
|
|
|
|
|
|
|
ENTRYPOINT [ "supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf" ]
|