Update Dockerfile to install dependencies using pnpm instead of npm
This commit is contained in:
parent
0d98b501a0
commit
76363d0da7
@ -21,12 +21,12 @@ RUN apk add --no-cache \
|
||||
|
||||
# 配置npm使用国内镜像源
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
|
||||
RUN npm -g i pnpm
|
||||
# 复制package.json和package-lock.json(如果存在)
|
||||
COPY package*.json ./
|
||||
|
||||
# 安装项目依赖
|
||||
RUN npm i
|
||||
RUN pnpm i
|
||||
|
||||
# 复制项目文件
|
||||
COPY . .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user