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 --build-arg option to watch

NorbertSzydlik opened this issue · comments

What is the problem you're trying to solve
When using rebuild action, docker compose watch runs a command equivalent to docker compose up --build <svc>.
However, some docker images need --build-arg args to build them correctly.
With current solution it is not possible to add this parameter to build when files are changed.

Describe the solution you'd like
The best solution would be for docker compose watch to automatically recognize if image was built using --build-arg parameters. Then it could apply same arguments when someone change watched files.
If this solution is not feasible, adding --build-arg parameter to docker compose watch should be enough.