Skip to content

fix(Dockerfile): run node-generate-prod from the repo root - #3175

Open
kost wants to merge 1 commit into
opencloud-eu:mainfrom
kost:fix-dockerfile-node-generate-workdir
Open

fix(Dockerfile): run node-generate-prod from the repo root#3175
kost wants to merge 1 commit into
opencloud-eu:mainfrom
kost:fix-dockerfile-node-generate-workdir

Conversation

@kost

@kost kost commented Jul 25, 2026

Copy link
Copy Markdown

WORKDIR was set to /opencloud/opencloud before this RUN step, but node-generate-prod is only a real target in the repo-root Makefile (it fans out to every service's own node-generate-prod via $(MAKE) -C $$mod node-generate-prod). The nested opencloud/Makefile has no such target, so running from there does nothing - silently, because it's mistaken for an already-satisfied file target rather than erroring - and the resulting image ships without the web/idp frontend assets it was supposed to generate (services/idp/assets/ identifier/index.html in particular, which makes the idp service crash-loop with "Could not open index template").

Types of changes

  • [ X ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

WORKDIR was set to /opencloud/opencloud before this RUN step, but
node-generate-prod is only a real target in the repo-root Makefile
(it fans out to every service's own node-generate-prod via
$(MAKE) -C $$mod node-generate-prod). The nested opencloud/Makefile
has no such target, so running from there does nothing -- silently,
because it's mistaken for an already-satisfied file target rather
than erroring -- and the resulting image ships without the web/idp
frontend assets it was supposed to generate (services/idp/assets/
identifier/index.html in particular, which makes the idp service
crash-loop with "Could not open index template").
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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