Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
17 lines
594 B
Docker
17 lines
594 B
Docker
FROM php:5.6-apache
|
|
|
|
LABEL maintainer="phithon <root@leavesongs.com>"
|
|
|
|
RUN set -ex \
|
|
&& docker-php-ext-install mysql \
|
|
&& rm -rf /var/www/html/* \
|
|
&& cd /tmp \
|
|
&& curl -#SL https://github.com/vulhub/discuz7/archive/2009.11.26.tar.gz -o discuz7-2009.11.26.tar.gz \
|
|
&& tar -zxvf discuz7-2009.11.26.tar.gz \
|
|
&& cp -r discuz7-2009.11.26/upload/* /var/www/html/ \
|
|
&& { \
|
|
echo "request_order=GP"; \
|
|
echo "date.timezone=Asia/Shanghai"; \
|
|
} | tee /usr/local/etc/php/conf.d/core.ini \
|
|
&& chown www-data:www-data -R /var/www/html \
|
|
&& rm -rf /tmp/* |