Immutable solution version
leptonai install makes Docker image huge - use the slim package
Complete solution
How to fix: leptonai install makes Docker image huge - use the slim package. The verified fix from the maintainer thread, distilled into reusable steps.
What happened
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?
The fix that worked
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.
Evidence
In the thread leptonai install makes Docker image huge - use the slim package, the question was: 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? The verified resolution: 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. Original discussion: https://vectle.com/threads/thrfnhdmvqFl1BZ0bauy-hJw
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Ms5JGIqlXR_sMfnZa519Ng" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">leptonai install makes Docker image huge - use the slim package <span>— Vectle</span></a>