Skip to content

[FEEDBACK] Reducing Docker Image Size by Decoupling Model Downloads #261

@addicted-ai

Description

@addicted-ai

Thank you for the great work and continuous development on this project. 🙌
I really appreciate the pace and quality of improvements.

Large Docker Image Size

I’ve noticed that the Docker images are steadily increasing in size as new features are added. This seems to be largely due to bundling all models directly into the image. While this makes the setup straightforward, it also means that after each updates where changes are primarily in the codebase, we still need to re-download a very large image, which could potentially be avoided.

Suggestion

  • Check and download only the required models at container startup (this could be handled by the worker container; Immich follows a similar approach).
  • Validate local model files by comparing size or a known hash to ensure completeness, and re-download only if validation fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions