An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Use golang:latest to build image
Daniel4d5f5380088e
diff --git a/Dockerfile b/Dockerfileindex 7e0428881e..bf51ffbcc0 100644--- a/Dockerfile+++ b/Dockerfile@@ -3,13 +3,12 @@ WORKDIR /go/src/github.com/siyuan-note/siyuan/ADD . /go/src/github.com/siyuan-note/siyuan/RUN cd app && npm install -g pnpm && pnpm install && pnpm run build-FROM golang:alpine as GO_BUILD+FROM golang:latest as GO_BUILDWORKDIR /go/src/github.com/siyuan-note/siyuan/COPY --from=NODE_BUILD /go/src/github.com/siyuan-note/siyuan/ /go/src/github.com/siyuan-note/siyuan/ENV GO111MODULE=onENV CGO_ENABLED=1-RUN apk add --no-cache gcc musl-dev && \- cd kernel && go build --tags fts5 -v -ldflags "-s -w -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod" && \+RUN cd kernel && go build --tags fts5 -v -ldflags "-s -w -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod" && \mkdir /opt/siyuan/ && \mv /go/src/github.com/siyuan-note/siyuan/app/appearance/ /opt/siyuan/ && \mv /go/src/github.com/siyuan-note/siyuan/app/stage/ /opt/siyuan/ && \