Skip to content

Commit

Permalink
更新安装文档,替换Docker构建步骤为拉取最新夜间版镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Nov 15, 2024
1 parent 6b20e9e commit 94a021b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions docs/en/deploy/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ python main.py

## **Run with Docker**

1. Install [`Docker`](https://docs.docker.com/get-docker/)
2. Clone Repo `git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1`
3. Change directory `cd LiteyukiBot`
4. Build docker image `docker build -t liteyukibot .`
5. Run container `docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot`
```bash
docker pull git.liteyuki.icu/bot/app:latest # Nightly build
```

> [!tip]
> If you are using Windows, please use the absolute project directory `/path/to/LiteyukiBot` instead of `$&#40;pwd&#41;` <br>
Expand Down
8 changes: 3 additions & 5 deletions docs/zh/deploy/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ python main.py

## **使用Docker构建**

1. 安装 [`Docker`](https://docs.docker.com/get-docker/)
2. 克隆项目 `git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1`
3. 进入轻雪目录 `cd LiteyukiBot`
4. 构建镜像 `docker build -t liteyukibot .`
5. 启动容器 `docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot`
```bash
docker pull git.liteyuki.icu/bot/app:latest # 每夜版镜像
```

> [!tip]
> Windows请使用项目绝对目录`/path/to/LiteyukiBot`代替`$(pwd)` <br>
Expand Down

0 comments on commit 94a021b

Please sign in to comment.