tree-sitter-dockerfile/test/corpus/healthcheck.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

42 lines
535 B
Plaintext

==================
None
==================
HEALTHCHECK NONE
---
(source_file
(healthcheck_instruction))
==================
Custom command
==================
HEALTHCHECK CMD echo "test"
---
(source_file
(healthcheck_instruction
(cmd_instruction
(shell_command
(shell_fragment)))))
==================
With options
==================
HEALTHCHECK --interval=10s --retries=10 CMD echo "test"
---
(source_file
(healthcheck_instruction
(param)
(param)
(cmd_instruction
(shell_command
(shell_fragment)))))