Skip to content

Docker build fails: When using COPY with more than one source file, the destination must be a directory and end with a / #7

@cpudney

Description

@cpudney

I generated a Dockerfile using:

docker run -ti -v ${PWD}:/home/clowder/data clowder/generator:latest

Then when I build it using:

docker build . --tag=...

the following error results:

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

Fix is to edit the Dockerfile and replace change the line:

COPY * /home/clowder

to

COPY * /home/clowder/

Using Docker v20.10.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions