chore: 完善 Docker 部署配置并修复测试超时
- 新增 Dockerfile: 多阶段构建,优化镜像大小 - 新增 .dockerignore: 加速构建,排除不必要文件 - 更新 docker-compose.yml: 使用 SQLite 简化部署 - 修复 vitest.config.js: testTimeout 改为 60000ms 修复慢测试超时
This commit is contained in:
47
.dockerignore
Normal file
47
.dockerignore
Normal file
@@ -0,0 +1,47 @@
|
||||
# Git
|
||||
.git
|
||||
.gitignore
|
||||
|
||||
# IDE
|
||||
.idea
|
||||
.vscode
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# 构建产物
|
||||
bin/
|
||||
dist/
|
||||
frontend/dist/
|
||||
frontend/node_modules/
|
||||
coverage/
|
||||
|
||||
# 测试文件
|
||||
*_test.go
|
||||
*.test.ts
|
||||
*.test.tsx
|
||||
vitest.config.*
|
||||
|
||||
# 文档
|
||||
*.md
|
||||
docs/
|
||||
|
||||
# 配置文件 (使用打包内的 configs 目录)
|
||||
configs/
|
||||
|
||||
# 部署脚本
|
||||
scripts/
|
||||
deployment/
|
||||
|
||||
# Docker 文件
|
||||
docker-compose*.yml
|
||||
Dockerfile*
|
||||
|
||||
# 其他
|
||||
.tmp/
|
||||
.cache/
|
||||
.gomdcache/
|
||||
.gocache/
|
||||
.workbuddy/
|
||||
.coverage/
|
||||
.env
|
||||
.env.*
|
||||
Reference in New Issue
Block a user