mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3202] [MERGED] [codex] Fix lite Docker runtime dependencies #5839
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5839
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3202
Author: @SpicyMarinara
Created: 7/4/2026
Status: ✅ Merged
Merged: 7/4/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/fix-lite-docker-fastify📝 Commits (1)
7b16c61Fix lite Docker pnpm runtime deps📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
Dockerfile.lite(+7 -1)📄 Description
Linked issue
Closes #3201
Why this change
The lite Docker image installed production dependencies with pnpm's repo-local virtual store (
virtual-store-dir=.pnpm), but the runtime dependency archive only copiednode_modulesand package-levelnode_modulesfolders. Server package symlinks such aspackages/server/node_modules/fastify -> ../../../.pnpm/...became dangling links in the final image, so the container crashed at startup withERR_MODULE_NOT_FOUNDforfastify.What changed
.pnpmvirtual store in the lite runtime dependency archive so pnpm symlinks resolve inside the final image..pnpmvirtual store as well as the legacynode_modules/.pnpmpath.fastify,@fastify/cors,sharp) so broken symlink archives fail during image build instead of after release.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
stagingwithdocker build -f Dockerfile.lite -t marinara-lite-3201 .followed bydocker run; startup exited withERR_MODULE_NOT_FOUND: Cannot find package 'fastify' imported from /app/packages/server/dist/app.js.packages/server/node_modules/fastifypointed at../../../.pnpm/...while/app/.pnpmwas missing from the runtime image.docker build -f Dockerfile.lite -t marinara-lite-3201-fixed --progress=plain .; the new dependency smoke check passed.docker run -d -p 127.0.0.1::7860 -e AUTO_CREATE_DEFAULT_CONNECTION=false -e ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK=true marinara-lite-3201-fixedand confirmed/served the app over HTTP.pnpm checklocally.Docs and release impact
UI evidence (if applicable)
Not applicable; Docker runtime fix only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.