rancher / dapper

Docker build wrapper
Apache License 2.0
365 stars 88 forks source link

add -X option to send Dockerfile via stdin without context, fixes #53 #55

Closed rmoriz closed 5 years ago

rmoriz commented 6 years ago

This allows building images with a blank build context by using the -X or --no-context switch (or DAPPER_NO_CONTEXT env).

From the Docker manual:

If you use STDIN or specify a URL pointing to a plain text file, the system places the contents into a file called Dockerfile, and any -f, --file option is ignored. In this scenario, there is no context.

see https://docs.docker.com/engine/reference/commandline/build/#text-files

see #53