build(docker): 优化Docker配置并添加国内镜像源

- 将基础镜像替换为AWS ECR公共镜像
- 使用阿里云镜像源加速apt安装
- 配置pnpm使用淘宝源
- 优化Dockerfile结构并添加ffmpeg验证
- 添加.dockerignore文件排除不必要文件
This commit is contained in:
2026-01-07 00:18:04 +08:00
parent 745c8cf29b
commit 762cb5412f
3 changed files with 36 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ const crypto = require('crypto');
const EventEmitter = require('events');
// Configuration
const PORT = 9520;
const PORT = process.env.PORT || 9520;
const API_BASE = 'http://183.6.121.121:9558/api';
const CACHE_DIR = process.env.CACHE_DIR ? path.resolve(process.env.CACHE_DIR) : path.join(__dirname, '.cache');