bctx is a tool for packing and uploading docker build context.
go get github.com/orisano/bctx/cmd/bctx
$ bctx -help
-dest string
destination path, supported gs://, s3:// and dir (required)
-f string
override Dockerfile
-ignore string
.dockerignore path (default "$src/.dockerignore")
-src string
source directory (default ".")
To show files of the build context. (order by size)
$ bctx -dest - | tar tv | sort -k3 -r | less
Nao Yonashiro (@orisano)
MIT