Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update dockerfile
Stevenf9f2f549afc7
diff --git a/Dockerfile b/Dockerfileindex 935eb141f..331be9d1c 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,16 +1,22 @@-# Build frontend dist.-FROM node:18-alpine AS frontend-WORKDIR /frontend-build+# Build protobuf.+FROM golang:1.21-alpine AS protobuf+WORKDIR /protobuf-generateCOPY . .-WORKDIR /frontend-build/proto+RUN GO111MODULE=on GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/[email protected]-RUN npm i -g @bufbuild/buf+WORKDIR /protobuf-generate/protoRUN buf generate-WORKDIR /frontend-build/web+# Build frontend dist.+FROM node:18-alpine AS frontend+WORKDIR /frontend-build++COPY ./web .++COPY --from=protobuf /protobuf-generate/web/src/types/proto ./src/types/protoRUN corepack enable && pnpm i --frozen-lockfile@@ -21,7 +27,7 @@ FROM golang:1.21-alpine AS backendWORKDIR /backend-buildCOPY . .-COPY --from=frontend /frontend-build/web/dist ./server/dist+COPY --from=frontend /frontend-build/dist ./server/distRUN CGO_ENABLED=0 go build -o memos ./main.go