Copy patches/ before pnpm install to fix docker build

This commit is contained in:
Haishan 2023-03-22 11:30:41 +08:00
parent e0b816d28f
commit 2236c0da31

View file

@ -4,7 +4,8 @@ FROM --platform=$BUILDPLATFORM node:alpine AS builder
WORKDIR /app WORKDIR /app
RUN npm i -g pnpm RUN npm i -g pnpm
COPY pnpm-lock.yaml package.json . COPY pnpm-lock.yaml package.json ./
COPY ./patches/ ./patches/
RUN pnpm i RUN pnpm i
COPY . . COPY . .