Skip to content

feat: cache python packages for speedup(DOCKER_BUILDKIT=1)#41

Merged
oleksandr-nc merged 3 commits intomainfrom
feat/use-DOCKER_BUILDKIT
Mar 26, 2025
Merged

feat: cache python packages for speedup(DOCKER_BUILDKIT=1)#41
oleksandr-nc merged 3 commits intomainfrom
feat/use-DOCKER_BUILDKIT

Conversation

@oleksandr-nc
Copy link
Contributor

@oleksandr-nc oleksandr-nc commented Mar 26, 2025

Instead of downloading packages for ExApp in python every time, we can ask docker to keep them in a separate volume and use from there. (not much speed for skeleton, but for any program that uses PyTorch it is a huge plus)

What do you think about it?

Edited: Also changed Docker file to use stage build - to allow use this in GitHub Actions without modification.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc oleksandr-nc requested a review from kyteinsky March 26, 2025 10:43
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc oleksandr-nc force-pushed the feat/use-DOCKER_BUILDKIT branch from 65407ef to 23d2ce1 Compare March 26, 2025 13:06
Copy link
Contributor

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds great!
It was a pain for dev setups when small dependencies changed and the pip install layer invalidated.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
Copy link
Contributor

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@oleksandr-nc oleksandr-nc merged commit 4d5513f into main Mar 26, 2025
3 checks passed
@oleksandr-nc oleksandr-nc deleted the feat/use-DOCKER_BUILDKIT branch March 26, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants