feat: 添加 Docker 支持及 GitHub Actions 自动构建流

*   新增 Dockerfile,支持在 Node.js 环境下本地运行 API。
*   添加 GitHub Actions 工作流,实现镜像自动构建并推送到 Docker Hub。
*   支持多平台构建(linux/amd64, linux/arm64)。
*   在 README.md 中补充了 Docker 本地运行的操作指南。
This commit is contained in:
Jurangren
2025-12-20 08:54:48 +08:00
parent c4839db8c9
commit 65855b64c1
3 changed files with 73 additions and 0 deletions

View File

@@ -21,6 +21,13 @@ npx wrangler login # 首次需要
npx wrangler publish
```
## Docker
### 本地运行
```bash
docker build -t wrangler-api:local .
docker run --rm -p 8787:8787 wrangler-api:local
```
## API 使用
- 路径:`POST /gal``POST /patch`
- Content-Type`multipart/form-data`