Closed EricCrosson closed 11 months ago
The dockerfile reference shows examples of both ADD and COPY taking multiple parameters:
ADD
COPY
ADD --chown=myuser:mygroup --chmod=655 files* /somedir/ COPY --chown=myuser:mygroup --chmod=644 files* /somedir/
However, the implementation of add_instruction and copy_instruction both only permit zero or one parameters:
add_instruction
copy_instruction
https://github.com/camdencheek/tree-sitter-dockerfile/blob/1800d5a06789797065ba5e7d80712b6bbf5483d7/grammar.js#L73-L91
The dockerfile reference shows examples of both
ADD
andCOPY
taking multiple parameters:However, the implementation of
add_instruction
andcopy_instruction
both only permit zero or one parameters:https://github.com/camdencheek/tree-sitter-dockerfile/blob/1800d5a06789797065ba5e7d80712b6bbf5483d7/grammar.js#L73-L91