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>
56 lines
597 B
Plaintext
56 lines
597 B
Plaintext
==================
|
|
No param
|
|
==================
|
|
|
|
COPY /src ./dst
|
|
|
|
---
|
|
|
|
(source_file
|
|
(copy_instruction
|
|
(path)
|
|
(path)))
|
|
|
|
==================
|
|
With param
|
|
==================
|
|
|
|
COPY --chown=a:b /src ./dst
|
|
|
|
---
|
|
|
|
(source_file
|
|
(copy_instruction
|
|
(param)
|
|
(path)
|
|
(path)))
|
|
|
|
==================
|
|
Multiple files
|
|
==================
|
|
|
|
COPY src1 src2 dst
|
|
|
|
---
|
|
|
|
(source_file
|
|
(copy_instruction
|
|
(path)
|
|
(path)
|
|
(path)))
|
|
|
|
==================
|
|
Multiple params
|
|
==================
|
|
|
|
COPY --chown=a:b --chmod=644 src dst
|
|
|
|
---
|
|
|
|
(source_file
|
|
(copy_instruction
|
|
(param)
|
|
(param)
|
|
(path)
|
|
(path)))
|