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>
70 lines
801 B
Plaintext
70 lines
801 B
Plaintext
==================
|
|
Single volume
|
|
==================
|
|
|
|
VOLUME /myvol
|
|
|
|
---
|
|
|
|
(source_file
|
|
(volume_instruction
|
|
(path)))
|
|
|
|
==================
|
|
Multiple volumes
|
|
==================
|
|
|
|
volume /myvol1 /myvol2
|
|
|
|
|
|
---
|
|
|
|
(source_file
|
|
(volume_instruction
|
|
(path)
|
|
(path)))
|
|
|
|
==================
|
|
Multiline volumes
|
|
==================
|
|
|
|
VOLUME /myvol1 \
|
|
/myvol2
|
|
|
|
---
|
|
|
|
(source_file
|
|
(volume_instruction
|
|
(path)
|
|
(line_continuation)
|
|
(path)))
|
|
|
|
==================
|
|
Array
|
|
==================
|
|
|
|
VOLUME ["/test/myvol"]
|
|
|
|
---
|
|
|
|
(source_file
|
|
(volume_instruction
|
|
(json_string_array
|
|
(json_string))))
|
|
|
|
==================
|
|
Multiline array
|
|
==================
|
|
|
|
VOLUME ["/test/myvol", \
|
|
"/test/myvol2"]
|
|
|
|
---
|
|
|
|
(source_file
|
|
(volume_instruction
|
|
(json_string_array
|
|
(json_string)
|
|
(line_continuation)
|
|
(json_string))))
|