Skip to content

Docker optimization#19

Merged
JanTopolewski merged 28 commits intodatarabbit-ai:mainfrom
Rumeleq:docker-optimization
Aug 4, 2025
Merged

Docker optimization#19
JanTopolewski merged 28 commits intodatarabbit-ai:mainfrom
Rumeleq:docker-optimization

Conversation

@wiktorKycia
Copy link
Collaborator

Key changes

  • replaced pip with uv, which is significantly faster package manager
  • removed unused audio dependencies from frontend
  • removed unused pandas from backend
  • removed apt-get update where not needed

Reduced building docker images time from ~1min 40s to ~30s

JanTopolewski and others added 27 commits July 15, 2025 23:36
Database operations optimization
Doctors and departments upgrade
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes Docker builds and refactors the codebase from a doctor-centric model to a department-based personnel system. The changes significantly reduce build time from ~1 minute 40 seconds to ~30 seconds while introducing more complex medical department management.

  • Replaced pip with uv package manager for faster dependency installation
  • Removed unused audio dependencies and pandas from requirements
  • Transitioned from single doctor assignments to department-based personnel management with doctors and nurses
  • Updated data models to support multi-department hospital structure with proper personnel assignments

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
frontend/requirements.txt Removed pyaudio dependency from elevenlabs package
frontend/main.py Major refactor to support department-based personnel system and updated function signatures
frontend/locales/pl/LC_MESSAGES/base.po Added Polish translations for medical departments and procedures
frontend/locales/en/LC_MESSAGES/base.po Removed unused medical procedure translations
frontend/Dockerfile Replaced pip with uv and removed audio-related system dependencies
faker/seed_data.py Complete rewrite to generate department-based data with personnel assignments
faker/models.py Updated database models to support departments and personnel instead of doctors
faker/database_structure_manager.py Updated to handle new database structure with departments and personnel
faker/data_generator.py Changed from doctor generation to personnel generation with roles
faker/Dockerfile Replaced pip with uv and simplified build process
backend/requirements.txt Removed pandas dependency
backend/models.py Updated models to match new department-based structure
backend/main.py Major refactor to support new data structure and personnel assignments
backend/Dockerfile Replaced pip with uv and simplified build process
Comments suppressed due to low confidence (1)

@JanTopolewski JanTopolewski merged commit d7aab61 into datarabbit-ai:main Aug 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments