diff --git a/docker-compose.yml b/docker-compose.yml index 3b5f93b5..9f82f18c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -102,8 +102,17 @@ services: # --- Platform --- platform: build: - context: ./platform - dockerfile: Dockerfile + # Build context MUST be repo root, not ./platform — the Dockerfile + # COPYs `platform/migrations`, `platform/go.mod`, + # `workspace-configs-templates/` etc. via repo-relative paths so it + # can bake in templates + migrations alongside the platform binary. + # When context was ./platform earlier, docker silently cached an + # earlier image (the COPY platform/migrations resolved to nothing + # under ./platform/, so layers stopped invalidating) — manifested + # as migration 023 not landing after PR #417 merged. CI workflow + # already uses context=. , this aligns local with CI. + context: . + dockerfile: platform/Dockerfile depends_on: postgres: condition: service_healthy