build: 新增 Dockerfile.prebuilt,.dockerignore 保留 dist

- 配合后端 scripts/push-build.sh:本机 astro build 后服务器只打镜像层,不跑 npm ci + build
- .dockerignore 之前忽略 dist,会导致预构建 COPY dist 失败
- 新增 .gitattributes 固定 Dockerfile / yml / conf 为 LF
This commit is contained in:
toom1996
2026-10-21 00:03:06 +08:00
parent f582d8d071
commit e7377a8771
3 changed files with 32 additions and 1 deletions

View File

@ -1,5 +1,5 @@
node_modules
dist
# ⚠️ 不要忽略 dist:本地预构建时 Dockerfile.prebuilt 需要 COPY 它
.git
.github
.gitea