-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerfile: allow heredocs for CMD instruction
This patch introduces support for using heredocs for the CMD instruction - they work identically to the heredocs for RUN, with a couple of differences for shebang scripts: - We create a new layer writing the script contents to /mnt/pipes/ Usually CMD does not create a new layer, however, the file is required to run the script as we would with RUN, since we want to avoid manual parsing of the shebang line. - We have to use /mnt/pipes instead of /dev/pipes, since /dev/pipes is mounted at runtime. Signed-off-by: Justin Chadwell <[email protected]>
- Loading branch information
Showing
3 changed files
with
230 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters