Files
internet-id/Dockerfile.backup
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

12 lines
258 B
Docker

# Dockerfile for backup service
FROM postgres:16-alpine
# Install bash and AWS CLI for backup operations
RUN apk add --no-cache bash aws-cli
# Set working directory
WORKDIR /opt/backup-scripts
# Default command (overridden by docker-compose)
CMD ["bash"]