TIL: Docker build target
neat docker trick I just learned:
services:
app:
image: ghcr.io/yourorg/yourapp:latest
build:
context: .
target: devwill pull the image by default, but build to a specific target if --build is passed or docker compose build
so you can use target to stop at different places in one build context if you have like a web container, a queue container, etc.
Log in to leave a note.