Cheatsheet Pages / Docker Cheatsheet
How to build a Docker image from a Dockerfile — docker build
You have a Dockerfile and want it turned into a named, runnable image.
docker build -t myapp:1.0 . # -t names it; "." is the build context
Good to know
-t names the image; the dot is the build context — the directory Docker can see.
