CI/CD 준비: gitignore 정리, backend 멀티스테이지 빌드, Gitea Actions 배포 워크플로우

- .gitignore 추가: node_modules, dist, .env 파일을 추적에서 해제 (로컬 파일은 유지)
- .env.example 템플릿 추가 (실제 값은 서버 .env / Gitea Secrets로 관리)
- backend Dockerfile을 멀티스테이지로 전환: 이미지 빌드 내에서 npm ci + build.js 실행
- backend/frontend .dockerignore 추가
- .gitea/workflows/deploy.yml 추가: main push 시 배포 서버 러너가 compose build + up

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 03:54:20 +09:00
parent 7f950339ae
commit 4aebfaf049
23230 changed files with 119 additions and 3199885 deletions
+18
View File
@@ -0,0 +1,18 @@
# Dependencies
node_modules/
# Build outputs
dist/
# Environment files (secrets) — use .env.example as template
.env
.env.*
!.env.example
# Uploads / generated assets
backend/img/
# Logs & OS files
*.log
.DS_Store
Thumbs.db