Skip to content

armgit / memos

Public Imported from GitHub
0

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.

build: update dockerfile for using cache to speed up (#1372)

远浅70e32637b0c4
diff --git a/Dockerfile b/Dockerfile
index 20ae4f56e..d80c9313b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,9 +2,13 @@
FROM node:18.12.1-alpine3.16 AS frontend
WORKDIR /frontend-build
+COPY ./web/package.json ./web/yarn.lock ./
+
+RUN yarn
+
COPY ./web/ .
-RUN yarn && yarn build
+RUN yarn build
# Build backend exec file.
FROM golang:1.19.3-alpine3.16 AS backend