Dockerfile is there a way to temporarily mount a host dircetory

Hi.

Is there a way to temporarily mount a directory while using dockerfile for the purpose of installing rpms? I don’t want the rpm files to be in on the docker image filesystem as its a waste of space etc.

Thank you
Greg