1bf9daef46
This adds support for heredocs in Dockerfiles. This required adding an external scanner to store the required state. Co-authored-by: Camden Cheek <camden@ccheek.com>
59 lines
797 B
Plaintext
59 lines
797 B
Plaintext
==================
|
|
Shell command
|
|
==================
|
|
|
|
ENTRYPOINT echo "test"
|
|
|
|
---
|
|
|
|
(source_file
|
|
(entrypoint_instruction
|
|
(shell_command
|
|
(shell_fragment))))
|
|
|
|
==================
|
|
Entrypoint Shell command multiline
|
|
==================
|
|
|
|
ENTRYPOINT echo "test" \
|
|
"foo" \
|
|
bar
|
|
|
|
|
|
---
|
|
|
|
(source_file
|
|
(entrypoint_instruction
|
|
(shell_command
|
|
(shell_fragment)
|
|
(line_continuation)
|
|
(shell_fragment)
|
|
(line_continuation)
|
|
(shell_fragment))))
|
|
|
|
==================
|
|
Run with shell empty array
|
|
==================
|
|
|
|
ENTRYPOINT []
|
|
|
|
---
|
|
|
|
(source_file
|
|
(entrypoint_instruction
|
|
(json_string_array)))
|
|
|
|
==================
|
|
Run with shell array
|
|
==================
|
|
|
|
ENTRYPOINT ["echo", "test"]
|
|
|
|
---
|
|
|
|
(source_file
|
|
(entrypoint_instruction
|
|
(json_string_array
|
|
(json_string)
|
|
(json_string))))
|