Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ 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