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/thinkphp/2.1/Dockerfile
Normal file
15
base/thinkphp/2.1/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM php:5.5-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /tmp \
|
||||
&& curl -#sSL https://github.com/vulhub/thinkphp-2.1/archive/master.tar.gz -o thinkphp-2.1.tar.gz \
|
||||
&& tar -zxvf thinkphp-2.1.tar.gz \
|
||||
&& cd thinkphp-2.1-master \
|
||||
&& cp -r ThinkPHP Examples/Hello/* /var/www/html/ \
|
||||
&& cd /var/www/html \
|
||||
&& chown www-data:www-data -R . \
|
||||
&& rm -rf /tmp/*
|
||||
|
||||
COPY index.php /var/www/html/index.php
|
21
base/thinkphp/2.1/index.php
Normal file
21
base/thinkphp/2.1/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// 定义ThinkPHP框架路径
|
||||
define('THINK_PATH', 'ThinkPHP');
|
||||
//定义项目名称和路径
|
||||
define('APP_NAME', 'Hello');
|
||||
define('APP_PATH', '.');
|
||||
// 加载框架公共入口文件
|
||||
require(THINK_PATH."/ThinkPHP.php");
|
||||
//实例化一个网站应用实例
|
||||
App::run();
|
||||
?>
|
30
base/thinkphp/5.0.20/Dockerfile
Normal file
30
base/thinkphp/5.0.20/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM php:7.2-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
ARG MIRROR_URL=https://github.com/vulhub/mirrors/raw/master/debian/stretch/aliyun.list
|
||||
|
||||
RUN set -ex \
|
||||
&& curl -#sL $MIRROR_URL -o /etc/apt/sources.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT /var/www/public
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& rm -rf * \
|
||||
&& curl -#SL https://github.com/top-think/think/archive/v5.0.20.tar.gz | tar zx --strip-components=1 \
|
||||
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
||||
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
|
||||
COPY composer.json /var/www/
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& curl -#sSL https://getcomposer.org/download/2.3.10/composer.phar -o composer.phar \
|
||||
&& php composer.phar install \
|
||||
&& chown www-data:www-data -R .
|
||||
|
||||
WORKDIR /var/www/public
|
36
base/thinkphp/5.0.20/composer.json
Normal file
36
base/thinkphp/5.0.20/composer.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "topthink/think",
|
||||
"description": "the new thinkphp framework",
|
||||
"type": "project",
|
||||
"keywords": [
|
||||
"framework",
|
||||
"thinkphp",
|
||||
"ORM"
|
||||
],
|
||||
"homepage": "http://thinkphp.cn/",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "liu21st",
|
||||
"email": "liu21st@gmail.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6.0",
|
||||
"topthink/framework": "==5.0.20"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"app\\": "application"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"think-path": "thinkphp"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"allow-plugins": {
|
||||
"topthink/think-installer": true
|
||||
}
|
||||
}
|
||||
}
|
28
base/thinkphp/5.0.23/Dockerfile
Normal file
28
base/thinkphp/5.0.23/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM php:7.2-apache
|
||||
|
||||
LABEL MAINTAINER="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT /var/www/public
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& rm -rf * \
|
||||
&& curl -#SL https://github.com/top-think/think/archive/v5.0.23.tar.gz | tar zx --strip-components=1 \
|
||||
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
||||
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
|
||||
COPY composer.json /var/www/
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& curl -#sSL https://getcomposer.org/download/2.3.10/composer.phar -o composer.phar \
|
||||
&& php composer.phar install \
|
||||
&& php composer.phar require "topthink/think-captcha:^1.0" \
|
||||
&& chown www-data:www-data -R .
|
||||
|
||||
WORKDIR /var/www/public
|
36
base/thinkphp/5.0.23/composer.json
Normal file
36
base/thinkphp/5.0.23/composer.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "topthink/think",
|
||||
"description": "the new thinkphp framework",
|
||||
"type": "project",
|
||||
"keywords": [
|
||||
"framework",
|
||||
"thinkphp",
|
||||
"ORM"
|
||||
],
|
||||
"homepage": "http://thinkphp.cn/",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "liu21st",
|
||||
"email": "liu21st@gmail.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6.0",
|
||||
"topthink/framework": "==5.0.23"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"app\\": "application"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"think-path": "thinkphp"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"allow-plugins": {
|
||||
"topthink/think-installer": true
|
||||
}
|
||||
}
|
||||
}
|
28
base/thinkphp/5.0.9/Dockerfile
Normal file
28
base/thinkphp/5.0.9/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM php:7.1-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends unzip \
|
||||
&& docker-php-ext-install -j$(nproc) pdo_mysql \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT /var/www/public
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& rm -rf * \
|
||||
&& curl -#SL https://github.com/top-think/think/archive/v5.0.9.tar.gz | tar zx --strip-components=1 \
|
||||
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
||||
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
|
||||
COPY composer.json /var/www/
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& curl -#sSL https://getcomposer.org/download/2.2.17/composer.phar -o composer.phar \
|
||||
&& php composer.phar install \
|
||||
&& chown www-data:www-data -R .
|
||||
|
||||
WORKDIR /var/www/public
|
31
base/thinkphp/5.0.9/composer.json
Normal file
31
base/thinkphp/5.0.9/composer.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "topthink/think",
|
||||
"description": "the new thinkphp framework",
|
||||
"type": "project",
|
||||
"keywords": [
|
||||
"framework",
|
||||
"thinkphp",
|
||||
"ORM"
|
||||
],
|
||||
"homepage": "http://thinkphp.cn/",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "liu21st",
|
||||
"email": "liu21st@gmail.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.4.0",
|
||||
"topthink/framework": "==5.0.9"
|
||||
},
|
||||
"extra": {
|
||||
"think-path": "thinkphp"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"allow-plugins": {
|
||||
"topthink/think-installer": true
|
||||
}
|
||||
}
|
||||
}
|
28
base/thinkphp/6.0.12/Dockerfile
Normal file
28
base/thinkphp/6.0.12/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM php:7.4-apache
|
||||
|
||||
LABEL MAINTAINER="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT /var/www/public
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& rm -rf * \
|
||||
&& curl -#SL https://github.com/top-think/think/archive/v6.0.12.tar.gz | tar zx --strip-components=1 \
|
||||
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
||||
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
||||
|
||||
COPY composer.json /var/www/
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /var/www \
|
||||
&& curl -#sSL https://getcomposer.org/download/2.4.4/composer.phar -o composer.phar \
|
||||
&& php composer.phar install \
|
||||
&& sed -i 's|// \\think\\middleware\\LoadLangPack.*| \\think\\middleware\\LoadLangPack::class,|i' app/middleware.php \
|
||||
&& chown www-data:www-data -R .
|
||||
|
||||
WORKDIR /var/www/public
|
48
base/thinkphp/6.0.12/composer.json
Normal file
48
base/thinkphp/6.0.12/composer.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "topthink/think",
|
||||
"description": "the new thinkphp framework",
|
||||
"type": "project",
|
||||
"keywords": [
|
||||
"framework",
|
||||
"thinkphp",
|
||||
"ORM"
|
||||
],
|
||||
"homepage": "http://thinkphp.cn/",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "liu21st",
|
||||
"email": "liu21st@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "yunwuxin",
|
||||
"email": "448901948@qq.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"topthink/framework": "6.0.12",
|
||||
"topthink/think-orm": "2.0.55"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/var-dumper": "4.2.12",
|
||||
"topthink/think-trace":"1.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"app\\": "app"
|
||||
},
|
||||
"psr-0": {
|
||||
"": "extend/"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist"
|
||||
},
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"@php think service:discover",
|
||||
"@php think vendor:publish"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user