Skip to content

Instantly share code, notes, and snippets.

@proppy
Forked from tianon/curl-docker-build.sh
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proppy/9130065 to your computer and use it in GitHub Desktop.
Save proppy/9130065 to your computer and use it in GitHub Desktop.
echo "FROM debian\nRUN apt-get update" | perl -w -MArchive::Tar -e 'my $tar = Archive::Tar->new; $tar->add_data("Dockerfile", <>); print $tar->write' | curl --data-binary @- --header 'Content-Type: application/x-tar' --dump-header - --no-buffer 'http://localhost:4243/build?rm=1&nocache=1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment