build(docker): 优化Docker配置并添加国内镜像源
- 将基础镜像替换为AWS ECR公共镜像 - 使用阿里云镜像源加速apt安装 - 配置pnpm使用淘宝源 - 优化Dockerfile结构并添加ffmpeg验证 - 添加.dockerignore文件排除不必要文件
This commit is contained in:
2
index.js
2
index.js
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user