Skip to content

fix: copy projects/ directory into Docker builds - #2905

Open
gilesw wants to merge 1 commit into
mainfrom
fix/docker-build-projects-dir-missing
Open

fix: copy projects/ directory into Docker builds#2905
gilesw wants to merge 1 commit into
mainfrom
fix/docker-build-projects-dir-missing

Conversation

@gilesw

@gilesw gilesw commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Problem

The Docker build (docker-compose.build.yml) was failing because Dockerfile.build (and Dockerfile.build.yarn) never copied the projects/ directory into the build container. The @orcid/ui, @orcid/registry-ui, and @orcid/tokens libraries live under projects/ and are resolved via path mappings in tsconfig.json, so the Angular compiler couldn't find them:

Cannot find module '@orcid/ui' or its corresponding type declarations.

GitHub CI was unaffected because it checks out the full repo and builds directly on the filesystem — no Docker layer involved.

Fix

Added COPY ./projects ./projects to both Dockerfiles so the library source is available at build time:

  • Dockerfile.build — added after COPY ./src ./src, before the mvn package step
  • Dockerfile.build.yarn — added after COPY scripts/ scripts/, before RUN yarn build

@gilesw gilesw changed the title fix/docker-build-projects-dir-missing fix: copy projects/ directory into Docker builds Aug 18, 2026
@gilesw
gilesw requested a review from cryptalith August 18, 2026 13:46
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