tree-sitter-dockerfile/test/corpus/onbuild.txt
tvrinssen 1bf9daef46
Support heredocs (#45)
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>
2024-04-19 14:08:28 -06:00

28 lines
365 B
Plaintext

==================
Simple add
==================
ONBUILD ADD . /app/src
---
(source_file
(onbuild_instruction
(add_instruction
(path)
(path))))
==================
Simple run
==================
ONBUILD RUN /usr/local/bin/python-build --dir /app/src
---
(source_file
(onbuild_instruction
(run_instruction
(shell_command
(shell_fragment)))))