28 lines
524 B
Docker
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"]
|