docker file

This commit is contained in:
OPSXCQ 2017-01-02 18:01:17 -02:00
parent f40a84879c
commit 70cd023120
No known key found for this signature in database
GPG Key ID: 9AD730FE9CDE5661

View File

@ -5,16 +5,22 @@ MAINTAINER opsxcq <opsxcq@thestorm.com.br>
RUN apt-get update && \ RUN apt-get update && \
apt-get upgrapde -y && \ apt-get upgrapde -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \ DEBIAN_FRONTEND=noninteractive apt-get install -y \
package1 \ apache2 \
package2 && \ mysql-server \
php5 \
php5-mysql \
php-pear \
php5-gd \
&& \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* 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 EXPOSE 80
VOLUME /data COPY main.sh /
WORKDIR /data ENTRYPOINT ["/main.sh"]