feat: 增加Docker容器环境

This commit is contained in:
听风
2025-11-06 14:50:19 +08:00
parent 7de1a30b92
commit de2389c9b1
14 changed files with 135 additions and 41 deletions
+22 -1
View File
@@ -46,7 +46,7 @@
- **功能增强**:
- [x] 更易用的版本 (GUI / CLI 交互优化)
- [x] API 封装
- [ ] Docker 部署
- [x] Docker 部署
- [ ] 自动化上传 (更智能的调度策略)
- [ ] 多线程/异步上传优化
- [ ] Slack/消息推送通知
@@ -164,6 +164,27 @@
python examples/upload_video_to_douyin.py
```
## Docker 环境
### 自己构建镜像
1. **构建Docker镜像**:
```
docker build -t social-auto-upload:latest .
```
2. **运行Docker容器**:
```
docker run -d -it -p 5409:5409 social-auto-upload:latest
```
### 使用预构建镜像
1. **拉取镜像**:
```
docker pull gzxy/social-auto-upload:latest
```
2. **运行Docker容器**:
```
docker run -d -it -p 5409:5409 gzxy/social-auto-upload:latest
```
启动容器后访问:[http://localhost:5409](http://localhost:5409)
## 🐇项目背景
该项目最初是我个人用于自动化管理社交媒体视频发布的工具。我的主要发布策略是提前一天设置定时发布,因此项目中很多定时发布相关的逻辑是基于“第二天”的时间进行计算的。