Skip to content

Commit

Permalink
fixed:一些拉取的库的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
theshdowaura committed Mar 14, 2024
1 parent 690e1b5 commit 007bbad
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions Dockerfile
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

0 comments on commit 007bbad

Please sign in to comment.