Skip to content

fix(docker): copy scripts/regenerate-catalog.mjs into backend builder#233

Merged
keysersoft merged 1 commit into
mainfrom
keysersoft/dockerfile-scripts-fix
May 20, 2026
Merged

fix(docker): copy scripts/regenerate-catalog.mjs into backend builder#233
keysersoft merged 1 commit into
mainfrom
keysersoft/dockerfile-scripts-fix

Conversation

@keysersoft
Copy link
Copy Markdown
Contributor

Hotfix: PR #232 added a prebuild hook on the backend that calls a script at the repo root. The Docker build doesn't COPY the scripts/ directory, so npm run build failed with MODULE_NOT_FOUND. One-line fix: COPY the single script file into the backend-builder stage.

PR #232 introduced a backend prebuild hook that runs
node ../../scripts/regenerate-catalog.mjs to keep catalog.ts in
sync with adapter JSONs. The Docker build only COPYs packages/backend
into the image, so the prebuild was failing with MODULE_NOT_FOUND.

Add a single COPY for the script (one tiny file, no deps).
@keysersoft keysersoft merged commit bf39b16 into main May 20, 2026
11 checks passed
@keysersoft keysersoft deleted the keysersoft/dockerfile-scripts-fix branch May 20, 2026 11:51
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