feat: 优化Docker构建配置,支持生产环境配置文件

- 更新.gitignore,允许.env.production文件被提交(私密仓库)
- 优化Dockerfile构建流程,使用.env.production作为生产环境配置
- 将.env.production复制为.env,确保生产环境使用正确的配置
- 新增.env.production生产环境配置文件
This commit is contained in:
iammm0
2026-01-23 10:56:59 +08:00
parent 24cd9f4770
commit d104377d26
3 changed files with 43 additions and 7 deletions

3
.gitignore vendored
View File

@@ -12,6 +12,9 @@ ENV/
# 环境变量
.env
.env.local
# 注意:.env.production 应该被提交(私密仓库)
# 明确排除 .env.production确保它可以被提交
!.env.production
# 数据库文件
*.db