Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 620 Bytes

DL3021.md

File metadata and controls

26 lines (17 loc) · 620 Bytes

Pattern: Missing / for COPY instruction

Issue: -

Description

If multiple <src> resources are specified, either directly or due to the use of a wildcard, then <dest> must be a directory, and it must end with a slash /.

Example of incorrect code:

FROM node:carbon
COPY package.json yarn.lock my_app

Example of correct code:

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

Further Reading