Skip to content

Fix the API image build when apps/api has no nested deps - #8

Merged
stephen-corgiat merged 3 commits into
masterfrom
fix-api-image-node-modules
Oct 24, 2026
Merged

stephen-corgiat merged 3 commits into
masterfrom
fix-api-image-node-modules

Conversation

@stephen-corgiat

Copy link
Copy Markdown
Owner

The dotenv bump in #4 let npm hoist the last dependency that was installed under apps/api/node_modules, so that directory is no longer created and the runtime stage's COPY --from=builder /repo/apps/api/node_modules fails. docker-publish has failed on master since #4.

The builder stage now creates the directory after the production prune, so the copy works whether or not npm nests anything there.

Verified locally: the API image builds, and dotenv and @nestjs/core load in it on Node 24.22.1.

@stephen-corgiat
stephen-corgiat merged commit aafc1c5 into master Oct 24, 2026
6 checks passed
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