3 ms·
Yeah exactly. I'm not sure how many people would recognize that adding a file in one RUN and then removing it in another RUN during a Dockerfile build would re
by thewataccount 4y ago
Yeah exactly.
I'm not sure how many people would recognize that adding a file in one RUN and then removing it in another RUN during a Dockerfile build would result in the file still existing in one of the layers.
IMO that's a good example of a critical bug (leaked private ssh key) that would be difficult to spot for even someone who's semi-comfortable with Dockerfiles and just isn't familiar with exactly how the build processes works and realizes that it will be an issue. Again it looks really correct and I think would have worked with no errors.