forked from vulnbank/vulnbank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (33 loc) · 1.34 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
# Dockerfile - VulnBank
FROM debian:stretch
LABEL maintainer="Mikhail Golovanov <[email protected]>"
COPY /sources/www /var/www
COPY /sources/evil /var/evil
COPY /nginx.config /etc/nginx/sites-enabled/default
COPY /start.sh /
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
gnupg2 \
dirmngr \
nginx \
curl \
php-fpm \
php-mysql \
php-curl \
wget \
libgomp1 \
&& mkdir /run/php \
&& chown www-data:www-data -R /var/www \
&& chown www-data:www-data -R /var/evil \
&& apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 \
&& add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/debian stretch main' \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server \
&& wget -q https://www.dropbox.com/s/ngtbe7onhdur9ns/imagemagick_6.8.9-1_amd64.deb?dl=0 -O imagemagick_6.8.9-1_amd64.deb \
&& dpkg -i imagemagick_6.8.9-1_amd64.deb \
&& rm imagemagick_6.8.9-1_amd64.deb \
&& ldconfig /usr/local/lib \
&& rm -fr /var/cache/apt/archives/* \
&& chmod +x /start.sh
CMD ["/start.sh"]