cat <<EOF >Dockerfile
FROM centos
COPY Dockerfile "" /tmp/
RUN ls /
RUN ls /tmp
EOF
imagebuilder .
This will create a file /tmpDockerfile. in / docker build ignores the empty string.
Use case: An empty ARG variable that could be used to copy extra files in.
This will create a file
/tmpDockerfile. in/docker buildignores the empty string.Use case: An empty
ARGvariable that could be used to copy extra files in.