Skip to content

Creating inline files with here-doc in Dockerfile doesn't work #1225

@shollander

Description

@shollander

Expected Behavior

The following Dockerfile should work (https://docs.docker.com/reference/dockerfile/#example-creating-inline-files):

FROM alpine
COPY <<EOF /etc/myconf
setting1=value
EOF

Current Behavior

Fails with the following error:

Could not build image: COPY failed: no source files were specified

The Dockerfile works fine with commandline docker build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions