CmdID / docker / docker compose
docker compose build
Services are built once and then tagged, by default as project-service. Docker Compose reference
14 options Its page in the Docker Compose reference
Options
--build-argSet build-time variables for services--builderSet builder to use--checkCheck build configuration--dry-runExecute command in dry run mode--memory, -mSet memory limit for the build container.--no-cacheDo not use cache when building the image--printPrint equivalent bake file--provenanceAdd a provenance attestation--pullAlways attempt to pull a newer version of the image--pushPush service images--quiet, -qSuppress the build output--sbomAdd a SBOM attestation--sshSet SSH authentications used when building service images.--with-dependenciesAlso build dependencies (transitively)