Files
my_bookmate/.dockerignore
T
gavindiazandClaude Code f63c0c55c9 feat: Docker 化部署(nginx-proxy-manager 反代,单域名 /api 路由)
- docker-compose.yml: backend + frontend 两服务,挂 NPM 所在外部网络、不暴露宿主端口;
  data/uploads 用 bind mount 持久化(deploy/ 下,gitignored)
- backend/Dockerfile: python:3.12-slim + 清华 PyPI 镜像(ARG 可覆盖)
- frontend/Dockerfile: 多阶段 node:22 + npm ci + next build(NEXT_PUBLIC_API_BASE 构建期
  注入,npmmirror 默认)→ next start
- .env.example: 全量部署环境变量模板(compose 替换变量 + 后端密钥)
- deploy/README.md: 服务器部署手册(NPM 配置 / DNS / 数据迁移 / 运维 / 大陆网络)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-25 15:35:20 +08:00

31 lines
435 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 构建上下文精简(避免把巨型/敏感目录发给 docker daemon)
.git
.gitignore
**/.venv
**/__pycache__
**/*.py[cod]
**/node_modules
**/.next
**/.turbo
**/tsconfig.tsbuildinfo
**/next-env.d.ts
# 环境与数据(密钥不进镜像;数据由卷挂载)
.env
.env.*
!.env.example
backend/data
backend/uploads
deploy/data
deploy/uploads
deploy/README.md
*.db
*.db-*
*.epub
*.log
# 本地工具
.idea
.vscode
.DS_Store