Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce image size with multi-stage builds #5

Open
matthewfeickert opened this issue Jun 3, 2021 · 2 comments
Open

Reduce image size with multi-stage builds #5

matthewfeickert opened this issue Jun 3, 2021 · 2 comments

Comments

@matthewfeickert
Copy link
Member

matthewfeickert commented Jun 3, 2021

It may be possible to reduce the image sizes with multi-stage builds, though this might take lots of effort.

Some things that might be worth reading after a Google search on "NVIDIA multi stage build" are:

I'm not sure if mutli-stage builds help much though for Python projects. I think you would normally use the devel tagged nvidia/cuda images to build software and then once it is build copy it out in a secondary stage to a runtime tagged nvidia/cuda image.

@edmald
Copy link

edmald commented Oct 22, 2022

Hi, @matthewfeickert what are the files that we will need to copy from devel to runtime to have a container with GPU computation capabilities and with a small size container?

@matthewfeickert
Copy link
Member Author

@edmald for Python it isn't really practical / the devel is already as good as you're going to get without a huge amount of work (more than I have time for) as you need the relevant libraries available at runtime as well. I'd be happy to be proved wrong, but I don't have the bandwidth these days to delve into it more.

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

No branches or pull requests

2 participants