Currently if files needed to be within included with a Dockerfile they must be included as an external dependency to the Dockerfile. I believe this is "un-Dockery" as it breaks the reproducibility of the Dockerfile - one can change the resulting image without changing the Dockerfile. Also, we all know that dependencies are a liability.
I would like to propose an additional statement used to embed a resource (file) within the Dockerfile image, which can subsequently be referenced with ADD & COPY:
RESOURCE somefile.conf HEREDOC
# This is the config file for someservice
somekey = somevalue
HEREDOC
ADD somefile.conf /etc/someservice.conf
Ideally I would prefer to be able to include the RESOURCE statements at the end of the Dockerfile but the last time I looked at the Dockerfile parser this would have required some hefty refactoring.
Duplicated reference names are an error. Directory delimiters are not permitted as reference names.
I am available to work on this feature.