docs/develop
Sebastiaan van Stijn 5011f61213
Fix Dockerfile COPY/ADD examples without a trailing slash
When copying files to a destination directory, the classic builder requires
the destination to have a trailing slash (to indicate the target is a _directory_.
not a filename). BuildKit is a bit more flexible in this, and will assume the
target is a directory, but users following the example with buildkit disabled
might see an error message, e.g.:

    Sending build context to Docker daemon  3.072kB
    Step 1/2 : FROM busybox
     ---> 69593048aa3a
    Step 2/2 : COPY *.go .
    When using COPY with more than one source file, the destination must be a directory and end with a /

It doesn't hurt to be explicit, so this patch updates some examples to prevent
this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-21 12:03:31 +02:00
..
develop-images Fix Dockerfile COPY/ADD examples without a trailing slash 2021-07-21 12:03:31 +02:00
scan-images Add CTA on Docker scan 2021-07-16 15:29:46 +01:00
dev-best-practices.md Update dev-best-practices.md 2020-11-06 07:52:32 -08:00
index.md move compose examples to the samples directory 2021-04-19 10:38:56 +02:00