fix(部署): 将模板迁移 SQL 打包到后端镜像
V28 迁移运行时需要读取 db/migration,补齐镜像复制与构建白名单。 同时保留后端镜像使用的周期检查入口。
This commit is contained in:
1 parent
6bac9586bf
commit
b552f1e567
3 files changed
+101
No files matched your search
@@ -0,0 +1,35 @@
|
||||
# 构建上下文白名单,防止本地配置、客户资料和虚拟环境被发送到构建器。
|
||||
**
|
||||
!backend/
|
||||
!backend/Dockerfile
|
||||
!backend/pyproject.toml
|
||||
!backend/uv.lock
|
||||
!backend/.python-version
|
||||
!backend/alembic.ini
|
||||
!backend/app/
|
||||
!backend/app/**
|
||||
!backend/alembic/
|
||||
!backend/alembic/**
|
||||
!db/
|
||||
!db/migration/
|
||||
!db/migration/**
|
||||
!db/queries/
|
||||
!db/queries/tplus/
|
||||
!db/queries/tplus/**
|
||||
!frontend/
|
||||
!frontend/Dockerfile
|
||||
!frontend/package.json
|
||||
!frontend/pnpm-lock.yaml
|
||||
!frontend/index.html
|
||||
!frontend/tsconfig*.json
|
||||
!frontend/vite.config.ts
|
||||
!frontend/.env.production
|
||||
!frontend/src/
|
||||
!frontend/src/**
|
||||
!frontend/public/
|
||||
!frontend/public/**
|
||||
!docker/
|
||||
!docker/nginx.prod.conf
|
||||
!docker/tplus-maintenance.sh
|
||||
**/__pycache__
|
||||
**/*.pyc
|
||||
Reference in new issue
Block a user