Skip to content

COPY does not handle empty arguments well #181

@joepvd

Description

@joepvd
cat <<EOF >Dockerfile
FROM centos
COPY Dockerfile "" /tmp/
RUN ls /
RUN ls /tmp
EOF
imagebuilder .

This will create a file /tmpDockerfile. in / docker build ignores the empty string.

Use case: An empty ARG variable that could be used to copy extra files in.

Metadata

Metadata

Assignees

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