fix: 🐛 修正构建脚本

This commit is contained in:
2022-02-23 11:40:13 +08:00
parent f2c038d543
commit 5fadd533de
2 changed files with 4 additions and 6 deletions

View File

@@ -1,9 +1,7 @@
FROM node:12 AS builder
WORKDIR /app
ADD package.json /app/
RUN npm install \
--registry=https://registry.npm.taobao.org \
--disturl=https://npm.taobao.org/dist
RUN npm config set registry https://registry.npmmirror.com && npm install
ADD . /app
RUN npm run build:prod