mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
Cost optimization: Migrate from expensive Cloud Build ($100+/month) to free GitHub Actions with registry caching. Changes: - Add .dockerignore to reduce build context (~1GB → ~10MB) - Rewrite deploy-backend job to use docker/build-push-action - Use Artifact Registry as persistent layer cache (mode=max) - Keep cloudbuild*.yaml as fallback for manual builds - Add documentation for new build process Benefits: - $0 monthly cost (public repo, free GitHub Actions) - Faster builds with registry-cached layers - Simpler deployment pipeline (all in one workflow) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
84 lines
1.1 KiB
Plaintext
84 lines
1.1 KiB
Plaintext
# .dockerignore - Reduce Docker build context size
|
|
# This is critical for fast builds as it reduces upload time and cache invalidation
|
|
|
|
# Git
|
|
.git/
|
|
.gitignore
|
|
.gitmodules
|
|
|
|
# Node.js / Frontend (not needed for backend image)
|
|
node_modules/
|
|
frontend/
|
|
frontend-react/
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Python virtual environments (use Docker's Python instead)
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
.venv/
|
|
venv/
|
|
backend/venv/
|
|
ENV/
|
|
env/
|
|
*.egg-info/
|
|
.eggs/
|
|
dist/
|
|
build/
|
|
*.egg
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
.DS_Store
|
|
|
|
# Testing (not needed in production image)
|
|
.pytest_cache/
|
|
.coverage
|
|
htmlcov/
|
|
.tox/
|
|
.nox/
|
|
coverage.xml
|
|
*.cover
|
|
tests/
|
|
backend/tests/
|
|
|
|
# Documentation (not needed in Docker image)
|
|
docs/
|
|
*.md
|
|
!README.md
|
|
|
|
# Infrastructure (not needed for Docker build)
|
|
infrastructure/
|
|
|
|
# CI/CD configs
|
|
.github/
|
|
|
|
# Cloud Build configs (keep for reference but not in image)
|
|
cloudbuild*.yaml
|
|
|
|
# Local development files
|
|
lyrics_transcriber_local/
|
|
*.local
|
|
.env
|
|
.env.*
|
|
*.bak
|
|
*.tmp
|
|
Thumbs.db
|
|
|
|
# Large test/sample files
|
|
tests/data/
|
|
*.mp3
|
|
*.wav
|
|
*.mp4
|
|
*.mkv
|
|
*.flac
|