Ensure in COPY of multiple source the destination always end with '/'

When using COPY with more than one source file, the destination must be a directory and end with a /

Risk Level: high
Platform: Docker
Spectral Rule ID: DOCKR014

REMEDIATION

In multiple copy Add / in the end of the destination directory.

FROM node:carbon
- COPY package.json yarn.lock my_app/
+ COPY package.json yarn.lock my_app

Read more: