From 541c9e6e8f5fc9a297fb7e6f46738d0230369ad2 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 9 Oct 2022 00:29:37 +0800 Subject: [PATCH] fix: Dockerfile can not build. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3cac457..042e2b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:16-alpine as base RUN apk add --no-cache libc6-compat WORKDIR /app COPY pnpm-lock.yaml package.json ./ -RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7 &&\ +RUN npm i --location=global pnpm@7 &&\ pnpm i &&\ pnpm build COPY . .