forked from mushorg/glastopf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (55 loc) · 1.94 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:14.04.1
MAINTAINER Lukas Rist <glaslos@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
## setup APT
RUN sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse' /etc/apt/sources.list && \
sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse' /etc/apt/sources.list && \
sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse' /etc/apt/sources.list && \
sed -i '1ideb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse' /etc/apt/sources.list
## Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
g++ \
gfortran \
git \
libevent-dev \
liblapack-dev \
libmysqlclient-dev \
libxml2-dev \
libxslt-dev \
make \
php5-cli \
php5-dev \
python-beautifulsoup \
python-chardet \
python-dev \
python-gevent \
python-lxml \
python-openssl \
python-pip \
python-requests \
python-setuptools \
python-sqlalchemy \
python2.7 \
python2.7-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
## Install and configure the PHP sandbox
RUN git clone https://github.com/glastopf/BFR.git /opt/BFR && \
cd /opt/BFR && \
phpize && \
./configure --enable-bfr && \
make && \
make install && \
echo "zend_extension = "$(find /usr -name bfr.so) >> /etc/php5/cli/php.ini && \
rm -rf /opt/BFR /tmp/* /var/tmp/*
## Install glastopf from latest sources
RUN git clone https://github.com/glastopf/glastopf.git /opt/glastopf && \
cd /opt/glastopf && \
python setup.py install && \
rm -rf /opt/glastopf /tmp/* /var/tmp/*
## Configuration
RUN mkdir /opt/myhoneypot
EXPOSE 80
WORKDIR /opt/myhoneypot
CMD ["glastopf-runner"]