COPY [files...] [destination]
The COPY
instruction moves files from your repository to the runner.
Files can be:
COPY . .
to copy the directory containing the Layerfile to the current
working directory (or /root if WORKDIR has not been used)COPY package.json yarn.lock ./
to copy those two files to the current
directory.COPY / /root
to copy the entire repository to /root in the runner.