Skip to content

Conversation

@eskp
Copy link
Member

@eskp eskp commented Jan 5, 2026

Problem

The db-migration init pod fails with:

Error: Cannot find module '../../keeperhub/db/schema-extensions'

The migrator stage in the Dockerfile wasn't copying the keeperhub/ directory which contains schema-extensions.ts.

Fix

Dockerfile

  COPY --from=builder /app/lib ./lib
+ COPY --from=builder /app/keeperhub ./keeperhub
  COPY --from=builder /app/package.json ./package.json

Test Plan

  • Deploy to staging and verify db-migration pod succeeds

The schema-extensions.ts file lives in keeperhub/db/ and needs
to be copied into the migrator container for drizzle-kit to work.
@eskp eskp requested review from a team, OleksandrUA, suisuss and taitsengstock January 5, 2026 05:14
@eskp eskp merged commit d9bcbea into staging Jan 5, 2026
1 check passed
@eskp eskp deleted the fix/migrator-dockerfile-keeperhub branch January 5, 2026 05:16
@eskp eskp mentioned this pull request Jan 5, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant