-
Notifications
You must be signed in to change notification settings - Fork 168
/
Dockerfile
70 lines (60 loc) · 2.2 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
64
65
66
67
68
69
70
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 \
python-beautifulsoup \
python-chardet \
python-dev \
python-gevent \
python-lxml \
python-openssl \
python-pip \
python-requests \
python-setuptools \
python-sqlalchemy \
python-mysqldb \
cython \
python-dateutil \
python2.7 \
python2.7-dev \
software-properties-common \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN locale-gen en_US.UTF-8 && export LANG=en_US.UTF-8 && LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php && apt-get update
RUN apt-get install -y --force-yes php7.0 php7.0-dev
## Install and configure the PHP sandbox
RUN git clone https://github.com/mushorg/BFR.git /opt/BFR && \
cd /opt/BFR && \
phpize7.0 && \
./configure --enable-bfr && \
make && \
make install && \
echo "zend_extension = "$(find /usr -name bfr.so) >> /etc/php/7.0/cli/php.ini && \
rm -rf /opt/BFR /tmp/* /var/tmp/*
## Install glastopf from latest sources
RUN git clone https://github.com/mushorg/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"]