Skip to content

Commit

Permalink
update:dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
theshdowaura committed Mar 14, 2024
1 parent 39fd90d commit e374022
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Dockerfile
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

0 comments on commit e374022

Please sign in to comment.