Containers are ephemeral. Containers should also be immutable. Therefore you would not want anything changing at RUN time. However, Docker provides a mechanism for this at BUILD time called multi-stage containers.