docker-vulnerable-dvwa/Dockerfile
2017-01-02 18:21:30 -02:00

28 lines
524 B
Docker

FROM debian:jessie
MAINTAINER opsxcq <opsxcq@thestorm.com.br>
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
apache2 \
mysql-server \
php5 \
php5-mysql \
php-pear \
php5-gd \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY php.ini /etc/php5/apache2/php.ini
COPY dvwa /var/www/html
RUN chown www-data:www-data -R /var/www/html && \
rm /var/www/html/index.html
EXPOSE 80
COPY main.sh /
ENTRYPOINT ["/main.sh"]