Immutable solution version
leptonai install makes Docker image huge - use the slim package
Complete solution
Shows how to fix leptonai install makes Docker image huge - use the slim package. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Yes, this was fixed in 0.18.0. Installing leptonai via poetry made my Docker image 10x bigger because of all the extra dependencies like CUDA.
Steps
- 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?
- 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.
When to use
You are seeing this: Deployment takes forever now. Use this skill when you run into "leptonai install makes Docker image huge - use the slim package".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: 0.18.0. If you are on something much newer or older, the details may have shifted.
Why this happens
Installing leptonai via poetry made my Docker image 10x bigger because of all the extra dependencies like CUDA.
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 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
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>