compose-spec / compose-spec

The Compose specification

Home Page:https://compose-spec.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to build dependencies to `docker compose build`

richin13 opened this issue · comments

What is the problem you're trying to solve

A simple way to build a service and all of its dependencies, without the need to use docker compose up and unnecessarily creating the built containers.

Describe the solution you'd like

A new CLI argument to docker compose build, similar to how --always-recreate-deps work in docker compose up. Something like --always-build-deps

Additional context

I have a large docker compose setup with many services and dependencies. Many people collaborate on different services which means changes to a given dependency might be introduced by someone else and simply building the service I'm working on does not re-build the dependency that changed.