feat(docker): 重构Docker配置以支持生产环境部署

- 添加Dockerfile.dev用于开发环境
- 重构主Dockerfile使用多阶段构建
- 添加nginx配置和entrypoint脚本
- 更新docker-compose.yml配置
- 修改API基础路径为相对路径
- 更新vite配置支持环境变量
This commit is contained in:
史悦
2026-01-22 16:28:55 +08:00
parent 4186c4289b
commit 8eb5499ecc
10 changed files with 132 additions and 23 deletions

View File

@@ -49,12 +49,12 @@ export function useThinkFlow({ t, locale }: { t: Translate; locale: Ref<string>
*/
const DEFAULT_CONFIG = {
chat: {
baseUrl: 'https://thinkflow.lz-t.top/chat/completions',
baseUrl: '/api/chat',
model: 'glm-4-flash',
apiKey: ''
},
image: {
baseUrl: 'https://thinkflow.lz-t.top/images/generations',
baseUrl: '/api/image',
model: 'cogview-3-flash',
apiKey: ''
}