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();
|
||||
?>
|
Reference in New Issue
Block a user