添加Docker

This commit is contained in:
shmilylty
2019-12-10 12:10:57 +08:00
parent 0093cd0522
commit 0cafe696a6
3 changed files with 47 additions and 2 deletions
+17 -1
View File
@@ -70,7 +70,7 @@ Python 3.8.0
pip 19.2.2 from C:\Users\shmilylty\AppData\Roaming\Python\Python37\site-packages\pip (python 3.8)
```
**✔Installation steps**
**✔Installation steps (Git version)**
1. **Download**
@@ -106,6 +106,22 @@ pip 19.2.2 from C:\Users\shmilylty\AppData\Roaming\Python\Python37\site-packages
git pull
```
**✔Installation steps (Docker version)**
Method 1: directly pull the deployed image (not updated in time)
```shell
docker pull tardis07/oneforall
docker run -it oneforall
```
Method 2: build from `Dockerfile` (same as git version)
```shell
docker build -t oneforall .
docker run -it oneforall
```
**✨Demonstration**
1. If you are installing dependencies through pip3, run the example using the following command: