fix: capitalize the title; feat: add options usage for docker and change chinese readme.md

This commit is contained in:
xuhe 2024-08-07 13:25:26 +08:00
parent e53927850d
commit f5db23fc21
2 changed files with 19 additions and 2 deletions

View File

@ -50,13 +50,25 @@ $ go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi@latest
```
## Git
You can also build your own
你可以从源码构建可执行文件
```bash
$ git clone https://github.com/xvzc/SpoofDPI.git
$ cd SpoofDPI
$ go build ./cmd/...
```
## Docker
你可以从Dockerfile构建你的docker image
```shell
docker build ./ -t spoof-dpi:latest
```
使用`docker run -it -p 8080:8080 --name spoof-dpi spoof-dpi:latest`运行容器
> 如果你希望在运行容器服务的时候传递参数(比如--enable-doh --timeout=2000), 你可以使用以下命令格式
```shell
docker run -it -p 8080:8080 spoof-dpi:latest --enable-doh
```
- 想要了解更多的参数, 请检查Usage部分内容
# 使用方法
```

View File

@ -54,12 +54,17 @@ $ cd SpoofDPI
$ go build ./cmd/...
```
## docker
## Docker
You can use Dockerfile to build a docker image
```shell
docker build ./ -t spoof-dpi:latest
```
Use `docker run -it -p 8080:8080 --name spoof-dpi spoof-dpi:latest` to run container
> If you want to passes options(like --enable-doh --timeout=2000) through the docker, you can run command like below
```shell
docker run -it -p 8080:8080 spoof-dpi:latest --enable-doh
```
- check the Usage for more options
# Usage
```