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
690e1b5
commit 007bbad
Showing
1 changed file
with
3 additions
and
25 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 |
---|---|---|
@@ -1,32 +1,10 @@ | ||
FROM php:5.5-apache | ||
FROM php:7.4-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/* | ||
COPY . /var/www/html | ||
|
||
EXPOSE 80 |