mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-24 00:22:25 +02:00
The generated Node Dockerfile copies source before running the install, so the first source change invalidates the install layer and every dependency is reinstalled. A production build showed 0/3 steps cached with `npm ci` rebuilding at 16.9s. Copy `package.json` and the lockfile first instead. Falls back to the current output when there is no lockfile, when an install lifecycle hook is present, when a custom install command is set, or when the config is nested in a workspace.