mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
ci: 🚀 Optimize the docker file to use the build cache
This commit is contained in:
@@ -2,7 +2,7 @@ FROM node:16-alpine as builder
|
||||
WORKDIR /app
|
||||
RUN apk add g++ make python3 git libpng-dev && npm i -g pnpm@7
|
||||
COPY . .
|
||||
RUN pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:venus
|
||||
RUN --mount=type=cache,target=/app/node_modules,rw,sharing=private pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:venus
|
||||
|
||||
FROM node:16-alpine as relocate
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user