Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 前端使用 `pnpm` 管理构建 https://github.com/siyuan-note/siyuan/issues/5059

Liang Ding1e90545f040d
diff --git a/Dockerfile b/Dockerfile
index bf34473afd..b289cfc161 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@ FROM node:16 as NODE_BUILD
WORKDIR /go/src/github.com/siyuan-note/siyuan/
ADD . /go/src/github.com/siyuan-note/siyuan/
RUN rm /go/src/github.com/siyuan-note/siyuan/app/package-lock.json
-RUN cd app && npm install --legacy-peer-deps && npm run build
+RUN cd app && npm install -g pnpm && pnpm install && pnpm run build
FROM golang:alpine as GO_BUILD
WORKDIR /go/src/github.com/siyuan-note/siyuan/