Deceptive rm Command in Dockerfile

Subject

Dockerfile-samelayer

FROM alpine
RUN fallocate -l 256M dummy-file && rm -f dummy-file

Dockerfile-differentlayer

FROM alpine
RUN fallocate -l 256M dummy-file
RUN rm -f dummy-file

Inspection

Dockerfile-samelayer

Dockerfile-differentlayer

Explanation

Obligatory Meme Ending

From Vault 11, the Last Survivor 💫 I have a theoretical degree in Theoretical Physics 👨‍🎓