mystic-ai / pipeline

Pipeline is an open source python SDK for building AI/ML workflows
https://www.mystic.ai
Apache License 2.0
127 stars 22 forks source link

Reduce Docker image size by excluding pip cache dir #463

Closed rossgray closed 3 months ago

rossgray commented 3 months ago

Pull request outline

We can reduce the resultant pipeline Docker image size by specifying the --no-cache-dir option when running pip install. When testing locally, this can significantly reduce Docker image sizes (for example it reduces a Stable Diffusion image by almost 3GB). This should lead to faster cold start times.

Checklist:

linear[bot] commented 3 months ago

PC-1158 Reduce size of Docker images by excluding pip cache dir