mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
build: update dockerfile for using cache to speed up (#1372)
This commit is contained in:
parent
c04a31dcda
commit
70e32637b0
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue