From 83440b09da02eed88bc136ad54bc0791f241a11d Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 9 Oct 2022 00:47:29 +0800 Subject: [PATCH] fix: Dockerfile can not build. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 042e2b9..e7d70a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,11 @@ RUN apk add --no-cache libc6-compat WORKDIR /app COPY pnpm-lock.yaml package.json ./ RUN npm i --location=global pnpm@7 &&\ - pnpm i &&\ - pnpm build -COPY . . + pnpm i FROM node:16-alpine as release WORKDIR /app +COPY . . COPY --from=base /app ./ RUN pnpm build &&\ pnpm prune --prod