docker-build - Docker Build from a template file
Using the same arguments as "docker build"
By default all the data points are from the environment variables.
If you need to pass in dynamic data points, there are some examples as below:
In the Dockerfile template
[% FOREACH file IN list %] ADD [% file %] /home/here/[% file %] [% END %]
From the command line
docker-build =Slist 'split /\n/, qx{find . -type f}' --tag some/image .
docker-build =MFile::Slurp =Slist 'read_dir(".")' --tag some/image .
FROM base/image AUTHOR [% author %] ...
docker-build =KVauthor "$USER <$EMAIL>" --tag some/image .
To install App::Dockerfile::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dockerfile::Template
CPAN shell
perl -MCPAN -e shell install App::Dockerfile::Template
For more information on module installation, please visit the detailed CPAN module installation guide.