docker file
This commit is contained in:
parent
f40a84879c
commit
70cd023120
18
Dockerfile
18
Dockerfile
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user