-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (30 loc) · 1.29 KB
/
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
37
38
FROM ubuntu:14.04.1
ENV DEBIAN_FRONTEND noninteractive
# Prepare source.list
RUN sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty main universe multiverse' /etc/apt/sources.list && \
sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main universe multiverse' /etc/apt/sources.list && \
sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main universe multiverse' /etc/apt/sources.list && \
sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main universe multiverse' /etc/apt/sources.list
# Install dependencies
RUN apt-get update && apt-get install -y \
git \
libmysqlclient-dev \
libsmi2ldbl \
libxslt1-dev \
python \
python-dev \
snmp-mibs-downloader && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Clone git repo and build the honeypot
RUN cd /opt/ && \
git clone https://github.com/mushorg/conpot.git && \
cd conpot/ && \
python setup.py install && \
rm -rf /opt/conpot /tmp/* /var/tmp/*
## Create directories
RUN mkdir -p /opt/myhoneypot/var
WORKDIR /opt/myhoneypot
VOLUME /opt/myhoneypot
EXPOSE 80 102 161/udp 502
CMD ["/usr/local/bin/conpot", "--template", "default", "--logfile", "/opt/myhoneypot/var/conpot.log"]