actions/checkout의 git clean이 바인드 마운트된 backend/img(업로드 파일)를
삭제하는 문제가 있어, 서버의 영구 배포 디렉터리에서 pull + compose up 하는
방식으로 전환. .env는 서버 파일로 관리하므로 Secrets 등록 불필요.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- .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>