forked from p15670423/monkey
27 lines
830 B
Docker
27 lines
830 B
Docker
FROM debian:stretch-slim
|
|
|
|
LABEL MAINTAINER="theonlydoo <theonlydoo@gmail.com>"
|
|
|
|
ARG RELEASE=1.6
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
EXPOSE 5000
|
|
|
|
WORKDIR /app
|
|
|
|
ADD https://github.com/guardicore/monkey/releases/download/${RELEASE}/infection_monkey_deb.${RELEASE}.tgz .
|
|
|
|
RUN tar xvf infection_monkey_deb.${RELEASE}.tgz \
|
|
&& apt-get -yqq update \
|
|
&& apt-get -yqq upgrade \
|
|
&& apt-get -yqq install python-pip \
|
|
python-dev \
|
|
libssl-dev \
|
|
supervisor \
|
|
&& dpkg -i *.deb \
|
|
&& rm -f *.deb *.tgz
|
|
|
|
COPY stack.conf /etc/supervisor/conf.d/stack.conf
|
|
|
|
ENTRYPOINT [ "supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf" ]
|