How do we make a container template file.
Well you cant do it straight . There is no include command in Dockerfile.
Here is my favorite workaround.
Create a bash script template - this script will do the job inside the Dockerfile.
Use makefile/cmake/autogen/your favorite build tool to generate a final bash file.
ADD <your bash script>
RUN chmod +x <your bash>;./<your bash script>
Well you cant do it straight . There is no include command in Dockerfile.
Here is my favorite workaround.
Create a bash script template - this script will do the job inside the Dockerfile.
Use makefile/cmake/autogen/your favorite build tool to generate a final bash file.
ADD <your bash script>
RUN chmod +x <your bash>;./<your bash script>