first commit
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
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
This commit is contained in:
15
base/ecshop/4.0.6/Dockerfile
Normal file
15
base/ecshop/4.0.6/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM php:5.6-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
ARG DOWNLOAD_PATH=/usr/local/src
|
||||
|
||||
RUN set -ex \
|
||||
&& docker-php-ext-install mysqli \
|
||||
&& curl -#SL https://file.vulhub.org/download/ecshop/ecshop-4.0.6.tar.gz \
|
||||
| tar zx -C ${DOWNLOAD_PATH} \
|
||||
&& cp -r ${DOWNLOAD_PATH}/ecshop/* /var/www/html/ \
|
||||
&& cp -r ${DOWNLOAD_PATH}/appserver /var/www/ \
|
||||
&& chown www-data:www-data -R /var/www \
|
||||
&& echo "date.timezone = Asia/Shanghai" > /usr/local/etc/php/conf.d/date.ini \
|
||||
&& rm -rf ${DOWNLOAD_PATH}/*
|
Reference in New Issue
Block a user