Add Docker supports

Docker版基于alpine构建,轻量化。
已知缺点:中文显示不全。
推荐将结果导出后浏览
后期维护考虑改为Ubuntu作为基础镜像
This commit is contained in:
milktea
2019-12-04 20:24:46 +08:00
parent 8c9e69ab9d
commit abb10159b9
2 changed files with 30 additions and 1 deletions
+17 -1
View File
@@ -70,7 +70,7 @@ Python 3.8.0
pip 19.2.2 from C:\Users\shmilylty\AppData\Roaming\Python\Python38\site-packages\pip (python 3.8)
```
**✔安装步骤**
**✔安装步骤git 版)**
1. **下载**
本项目已经在[码云](https://gitee.com/shmilylty/OneForAll.git)(Gitee)镜像了一份,国内推荐使用码云进行克隆比较快:
@@ -104,6 +104,22 @@ pip 19.2.2 from C:\Users\shmilylty\AppData\Roaming\Python\Python38\site-packages
git pull
```
**✔安装步骤(docker 版)**
方法一:直接拉取部署好的镜像(更新不及时)
```shell
docker pull tardis07/oneforall
docker run oneforall
```
方法二:从 `Dockerfile` 中构建(同git版)
```shell
docker build -t oneforall .
docker run oneforall
```
**✨使用演示**
1. 如果你是通过pip3安装的依赖则使用以下命令运行示例: