forked from do0dl3/xss-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39fd90d
commit e374022
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM php:5.5-apache | ||
|
||
MAINTAINER theshdowaura <[email protected]> | ||
ENV LC_ALL C.UTF-8 | ||
ENV TZ=Asia/Shanghai | ||
|
||
COPY . /tmp/ | ||
|
||
# config apache && php | ||
RUN cp /tmp/docker-php.conf /etc/apache2/conf-available/docker-php.conf &&\ | ||
cp /tmp/php.ini /usr/local/etc/php/ &&\ | ||
cp /tmp/php.ini /usr/local/etc/php/conf.d/ | ||
|
||
# install git && php ext | ||
RUN apt-get update && \ | ||
apt-get install -y libgd-dev &&\ | ||
apt-get install -y git &&\ | ||
docker-php-ext-install gd &&\ | ||
docker-php-ext-enable gd &&\ | ||
docker-php-ext-install exif &&\ | ||
docker-php-ext-enable exif &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# install xss-labs | ||
RUN cd /tmp/ &&\ | ||
git clone https://github.com/theshdowaura/xss-labs.git &&\ | ||
rm -rf /var/wwww/html/* &&\ | ||
mv /tmp/xss-labs/* /var/www/html/ &&\ | ||
chown www-data:www-data -R /var/www/html/ && \ | ||
rm -rf /tmp/* | ||
|
||
EXPOSE 80 |