mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
uv tool install lefthook (#16842)
This commit is contained in:
@@ -226,10 +226,6 @@ RUN --mount=type=cache,id=ragflow_uv,target=/root/.cache/uv,sharing=locked \
|
||||
# Install frontend dependencies — depends only on package manifests so
|
||||
# web source / docs changes don't invalidate this layer.
|
||||
COPY web/package.json web/package-lock.json web/.npmrc ./web/
|
||||
# The `prepare` lifecycle script (npm install) runs `node scripts/prepare.js`,
|
||||
# so that file must be present before `npm install` or the build fails with
|
||||
# "Cannot find module '/ragflow/web/scripts/prepare.js'".
|
||||
COPY web/scripts ./web/scripts
|
||||
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
|
||||
cd web && NODE_OPTIONS="--max-old-space-size=8192" npm install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user