Skip to content

Instantly share code, notes, and snippets.

@arpat
Created May 11, 2017 13:22
Show Gist options
  • Save arpat/0267c1913394f6c5a963021168a6b20e to your computer and use it in GitHub Desktop.
Save arpat/0267c1913394f6c5a963021168a6b20e to your computer and use it in GitHub Desktop.
Embed multi-line text inside Dockerfile
# Dockerfile snippet
RUN ( echo \
"This is a multiline\n\
file to be placed\n\
somewhere but needs\n\
to be visible inside\n\
the Dockerfile" \
> /tmp/this )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment