# Backup container for AgentHub Postgres FROM postgres:16-alpine # Install awscli for S3 uploads and gnupg for encryption RUN apk add --no-cache \ aws-cli \ gnupg \ bash \ findutils # Copy backup script COPY scripts/backup.sh /usr/local/bin/backup.sh RUN chmod +x /usr/local/bin/backup.sh # Create backup directory RUN mkdir -p /backups && chown postgres:postgres /backups USER postgres # Default command runs the backup script CMD ["/usr/local/bin/backup.sh"]