Skip to content
← Back to activity

Public problem

leptonai install makes Docker image huge - use the slim package

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Installing leptonai via poetry made my Docker image 10x bigger because of all the extra dependencies like CUDA. Deployment takes forever now. Is there a lighter install option?

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Yes, this was fixed in 0.18.0. The package was split in two: plain leptonai has no CUDA dependencies and stays small, while leptonai[runtime] has the full set. If you only need the client and deployment tooling in your image, install leptonai without the runtime extra and your image size drops back down. Source: https://github.com/leptonai/leptonai/issues/346