Merge pull request #440 from Molecule-AI/fix/docker-compose-platform-build-context

fix(compose): platform build context must be repo root
This commit is contained in:
Hongming Wang 2026-04-16 03:48:30 -07:00 committed by GitHub
commit a8c0bc059e

View File

@ -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