-
-
Notifications
You must be signed in to change notification settings - Fork 722
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
Slimify based on multiple commands? #515
Comments
This is a very interesting use case @Pithikos ! The first thing you can try is one/some of the Another thing to try is the In some cases, wrapping all three (or how many) ways to invoke your container in a shell script (which could be mounted in the There's also a new option on the todo list that should help too. There'll be a new |
@Pithikos The new release has an experimental Once you have your 3 minified images that correspond to each of your execution profiles you can merge the first two and then merge the result image of the initial merge with the last minified image. Let me know how it goes and if you encounter any gotchas or if you have any comments or asks there. |
Scenario
I have a single image that is deployed in 3 different ways:
5000
3000
In each case there's some overlap between files used but not all are used. Running
docker-slim
against (2) ends up removing files used by case (1) and (3) for example.How can I solve this? Alternatively is there a way to skip specific files?
I'd prefer to not split into 3 separate containers, since everything is tightly coupled and that will introduce a lot of unnecessary maintenace.
Specifications
The text was updated successfully, but these errors were encountered: