Using local installers for Dockerfile

Apologize if this has been covered before, I am new to Docker and have tried to go through the documentation but I am still unclear how to accomplish the following. When setting up a Docker file to do a build I would like to use some local installer packages to install things on the base CentOs7 image, but I don’t want the installers to be part of the image. So, I want to have the Dockerfile run the install, but have the source files just stay outside, and just have the finished installed program. Maybe this is obvious and I am just missing something. But probably one example Dockerfile is what I need.

Thank you

Hi omeansea,

You can do what is called multi-stage build. You should find information an examples on this link Use multi-stage builds | Docker Documentation

Best Regards,
Fouscou B.