Skip to content

Instantly share code, notes, and snippets.

@proppy
Created May 9, 2014 22:15
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/449f184d178c60277ed7 to your computer and use it in GitHub Desktop.
Save proppy/449f184d178c60277ed7 to your computer and use it in GitHub Desktop.
$ ls
builder-context/
myapp-context/
Dockerfile
Dockerfile.template
$ docker build -t myapp-builder . # assemble my builder image
$ docker run myapp-builder # build my app
<output a tar w/ a Dockerfile on stdout>
$ docker run myapp-builder | docker build -t myapp - # build my app
$ docker run myapp # run my app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment