Build a container image with a version tag.
Section: Infrastructure and deployment recipes
Docker build target
makefile
makefile
IMAGE ?= example/app
TAG ?= latest
.PHONY: docker-build
docker-build:
docker build -t $(IMAGE):$(TAG) .Explanation
Common deployment building block.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Infrastructure and deployment recipes
Terraform plan target
Run a named plan file for a chosen environment.
Deploy static site to S3
Sync built files to a bucket and invalidate a CDN.