forked from gophish/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 976 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
33
34
35
36
FROM python:3
RUN apt-get update \
&& apt-get install -y \
git \
wget \
sqlite3 \
supervisor \
unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Download and install Gophish
WORKDIR /usr/src/gophish
RUN wget -O gophish.zip https://github.com/kgretzky/gophish/releases/download/v0.12.1/gophish-v0.12.1-linux-64bit.zip
RUN unzip gophish.zip
RUN rm gophish.zip
RUN chmod +x gophish
# Expose the admin port to the host
RUN sed -i 's/127.0.0.1/0.0.0.0/g' config.json
WORKDIR /usr/src/gophish-demo/
COPY . .
RUN mv docker/* .
RUN chmod +x run_demo.sh
# Install depenedencies
RUN pip install aiosmtpd astroid atpublic certifi chardet Faker flake8 gophish idna isort lazy-object-proxy mccabe pycodestyle pyflakes pylint python-dateutil requests six text-unidecode typed-ast urllib3 wrapt yapf
# Setup the supervisor
RUN mv supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 3333 8080 8443 80
CMD ["/usr/bin/supervisord"]