Files
internet-id/.dockerignore
Copilot 21bd59c991 Define staging and production deployment pipelines (#104)
* Initial plan

* Add Docker containerization and deployment workflows

- Create Dockerfile for web application with standalone output
- Enhance API Dockerfile with multi-stage builds
- Add docker-compose files for staging and production
- Add .dockerignore files for optimized builds
- Create GitHub Actions workflows for staging and production deployment
- Add comprehensive deployment playbook and environment variables documentation
- Update README with Docker deployment section and ops documentation links

Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com>

* Add deployment utilities and quick start guide

- Add smoke test script for deployment validation
- Create deployment quick start guide for common tasks
- Add Docker and deployment npm scripts
- Copy nginx configs for staging and production environments

Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com>

* Fix code review issues

- Fix web health check endpoints to use root path instead of non-existent /api/health
- Improve smoke test URL construction for web application
- Add security TODOs for CSP unsafe-inline and unsafe-eval directives
- Add notes about GITHUB_TOKEN usage and secure Docker login
- Fix Dockerfile.api deps stage to install all dependencies correctly

Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com>

* Add deployment implementation summary

- Create comprehensive summary document of all deployment features
- Document acceptance criteria completion status
- Include architecture overview and service details
- Add testing validation results
- Document rollback strategies and procedures
- List known limitations and future enhancements

Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com>

* Address PR review comments

- Fix Dockerfile.api to use --only=production in deps stage
- Copy Prisma client from builder stage instead of regenerating
- Use proper output redirection for Docker login (> /dev/null 2>&1)
- Remove --build flag from staging deployment to use pre-built images
- Remove --no-recreate flag from production deployment for proper blue-green
- Create Dockerfile.backup with bash and aws-cli pre-installed
- Update docker-compose files to use custom backup image
- Remove inefficient runtime package installation from backup services

Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com>
2025-10-31 15:11:28 -05:00

84 lines
734 B
Plaintext

# Git
.git
.gitignore
.github
# Dependencies
node_modules
web/node_modules
# Build outputs
.next
dist
build
out
typechain-types
# Database
*.db
*.db-journal
dev.db
dev.db-journal
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Environment files
.env
.env.local
.env*.local
web/.env.local
web/.env*.local
# Testing
coverage
.nyc_output
test-results
playwright-report
# IDE
.vscode
.idea
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Temporary files
tmp
temp
*.tmp
# Documentation (not needed in container)
*.md
!README.md
docs
# CI/CD
.github/workflows
# Backup files
backup_data
backups
# Cache
.cache
.parcel-cache
.eslintcache
# Hardhat
cache
artifacts
# Misc
proof.json
manifest.json