mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 04:42:54 +03:00
build: update dockerfile for using cache to speed up (#1372)
This commit is contained in:
parent
c04a31dcda
commit
70e32637b0
@ -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…
Reference in New Issue
Block a user