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

consider using multistage builds in Dockerfiles #52

Open
charlesfrye opened this issue Sep 8, 2022 · 0 comments
Open

consider using multistage builds in Dockerfiles #52

charlesfrye opened this issue Sep 8, 2022 · 0 comments

Comments

@charlesfrye
Copy link
Collaborator

Multistage builds help separate heavier development dependencies from lighter production dependencies without compromising on all the things that make containers nice.

The classic example is separating compilation from deployment. If training is model compilation, why not borrow this best practice?

Less ambitiously, it might be possible to use them for splitting frontend/backend(s). Right now, we've got gradio and pandas in our Lambda, which is costing us whole seconds each inference.

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

1 participant