mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
🚀 Optimise the docker file to use the build cache
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
FROM node:16-alpine as builder
|
||||
WORKDIR /app
|
||||
RUN apk add g++ make python3 git libpng-dev && npm i -g pnpm@7
|
||||
COPY . .
|
||||
RUN apk add g++ make python3 git libpng-dev
|
||||
RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:venus
|
||||
RUN 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