From 70cd0231203c7edb9a4762fe2f2eee05eb4a7713 Mon Sep 17 00:00:00 2001 From: OPSXCQ Date: Mon, 2 Jan 2017 18:01:17 -0200 Subject: [PATCH] docker file --- Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7fd9e0a..f463b64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,22 @@ MAINTAINER opsxcq RUN apt-get update && \ apt-get upgrapde -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ - package1 \ - package2 && \ + apache2 \ + mysql-server \ + php5 \ + php5-mysql \ + php-pear \ + php5-gd \ + && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -RUN useradd --system --uid 666 -M --shell /usr/sbin/nologin vulnerable +COPY dvwa /var/www/html -USER vulnerable +RUN chown www-data:www-data -R /var/www/html && \ + rm /var/www/html/index.html EXPOSE 80 -VOLUME /data -WORKDIR /data +COPY main.sh / +ENTRYPOINT ["/main.sh"]