Quick way to add multiple RPM's to a dockerfile

I have a Docker image where I am trying to add a bunch of differnet RPM’s. I saw the topic on Github about adding a singular RPM –

How to install a local rpm file when building docker instance?

  • Local folders mapped to container volumes are not synced
  • docker port mapping error
  • Google gsutil auth without prompt
  • docker for mac failed to start
  • Why is the loop-lvm device storage not suitable for production?
  • Q: how to set docker0 interface as externally available IP in a gcloud compute instance?
  • However, I am trying to add quite a few different RPM’s, so this method would be rather tedious. Is there a more efficient way to just add a folder thats filled with RPM’s?

  • how to assign a group of logical Linux interfaces to a Docker container?
  • Containerization of OpenStack services with Kubernetes?
  • Docker undo rm container
  • how to set /sys/kernel/mm/transparent_hugepage/enabled to 'never' on coreos
  • How to get the URL of Swarm agent load balancer in Azure container service
  • Cannot start Spark in Docker container
  • One Solution collect form web for “Quick way to add multiple RPM's to a dockerfile”

    You can add all forder with your RPMs

    ADD /path_to_all_rpm_location_in_local_machine /path_to_place_rpm_in_docker
    

    Or you can add each one PRM by one command ADD

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.