docker compose build
Build or rebuild services
docker compose build [OPTIONS] [SERVICE...]
Services are built once and then tagged, by default as
If you change a service's
Dockerfile or the contents of its build directory,
docker compose build to rebuild it.
|Set build-time variables for services
|Set builder to use
|Set memory limit for the build container. Not supported by BuildKit.
|Do not use cache when building the image
|Always attempt to pull a newer version of the image
|Push service images
|Don't print anything to STDOUT
|Set SSH authentications used when building service images. (use 'default' for using your default SSH Agent)
|Also build dependencies (transitively)