mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 07:29:33 +08:00
新增 GitHub Actions 配置以支持 Docker 镜像自动构建与推送,更新 README 添加使用说明
This commit is contained in:
11
README.md
11
README.md
@@ -98,6 +98,17 @@ go run .
|
||||
3. 脚本会自动推送标签,触发 GitHub Actions 进行构建并发布 Release。
|
||||
|
||||
### Docker 运行
|
||||
|
||||
#### 使用 Docker Hub 镜像 (推荐)
|
||||
```bash
|
||||
docker run -d \
|
||||
--name bingpaper \
|
||||
-p 8080:8080 \
|
||||
-v $(pwd)/data:/app/data \
|
||||
hxuanyu521/bingpaper:latest
|
||||
```
|
||||
|
||||
#### 本地构建镜像
|
||||
```bash
|
||||
docker build -t bing-paper .
|
||||
docker run -d -p 8080:8080 -v $(pwd)/data:/app/data bing-paper
|
||||
|
||||
Reference in New Issue
Block a user