docker-scripts icon indicating copy to clipboard operation
docker-scripts copied to clipboard

docker-rebase: combine all ENV entries into one

Open TomNussbaumer opened this issue 10 years ago • 2 comments

First of all: great work! I was about to write my own script for collapsing image stacks, when I stumbled upon yours.

Since the Dockerfile specs let you combine as many ENV entries as you want in a single line, it would be quite nice when the script would perform this optimization (to get rid of all the 0-Byte dummy layers).

TomNussbaumer avatar Aug 06 '15 01:08 TomNussbaumer

That is a good idea. Typically I only have one or two variables in my containers, but in the case where you have many this would be a nice enhancement.

docbill avatar Aug 06 '15 12:08 docbill

Sorry I still haven't had a chance to test this yet. My main concerns is I want to make sure it doesn't introduce buffer overflows inside docker when parsing the container and if there are problems with special characters they in the environmental variable strings this does not aggravate that issue.

docbill avatar Dec 20 '15 05:12 docbill