Using a COPY
statement creates a new image layer, right?
COPY files/foo.zip /tmp/
Now, to save space I could take the ADD
statement... for a GZ arhive. But ADD
does not support automatic extraction of ZIP files.
So the foo.zip
will be dangling around somewhere in a below layer. Just a RUN rm
statement does not help.
How do you solve this?