mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
build: update dockerfile for using cache to speed up (#1372)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user