mirror of
https://github.com/usememos/memos.git
synced 2025-10-12 15:26:07 +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
|
FROM node:18.12.1-alpine3.16 AS frontend
|
||||||
WORKDIR /frontend-build
|
WORKDIR /frontend-build
|
||||||
|
|
||||||
|
COPY ./web/package.json ./web/yarn.lock ./
|
||||||
|
|
||||||
|
RUN yarn
|
||||||
|
|
||||||
COPY ./web/ .
|
COPY ./web/ .
|
||||||
|
|
||||||
RUN yarn && yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# Build backend exec file.
|
# Build backend exec file.
|
||||||
FROM golang:1.19.3-alpine3.16 AS backend
|
FROM golang:1.19.3-alpine3.16 AS backend
|
||||||
|
|
Loading…
Add table
Reference in a new issue