pull/86/merge
int32bit 2017-03-17 01:08:28 +00:00 committed by GitHub
commit 1377c3dd9c
2 changed files with 23 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM php:7.0-apache
# Enable php GD
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd
COPY . /var/www/html/
RUN mkdir -p /var/www/html/data/User/admin/home/picture \
&& mkdir -p /var/www/html/data/User/admin/home/music \
&& mkdir -p /var/www/html/data/User/admin/home/download \
&& mkdir -p /var/www/html/data/thumb
RUN chmod -R a+w /var/www/html/data

View File

@ -44,6 +44,13 @@
[文件拖拽上传] 除了ie8以下的大部分浏览器支持建议使用chrome、360、猎豹、uc等
[文件夹拖拽上传] 除了ie10以下、firefox大部分浏览器都支持建议使用chrome、360、猎豹、uc等
#### 4.使用Docker快速部署
```
docker build -t kodexplorer .
docker run -d -p 80:80 --name KODExplorer kodexplorer
```
![](https://cloud.githubusercontent.com/assets/3761968/2583304/764f562a-b9cf-11e3-8e59-afdbdffc20eb.png)
## editor