Skip to content

[Request]: Support inline Dockerfile from stdin for container build #727

@skaegi

Description

@skaegi

Feature or enhancement request details

In some very common automation cases it would be great to support inlined Dockerfiles for container build.
For example:

$ echo -e "FROM alpine\nRUN echo 'Hello World'" | container build -t myimage -f - .
Error: Dockerfile does not exist at path: -
Usage: container build [<options>] [<context-dir>]
  See 'container build --help' for more information.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

builderIssues and features associated with container image building

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions