diff --git a/Dockerfile b/Dockerfile index 8d600b3..6cffdf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,13 +13,13 @@ COPY package*.json ./ RUN npm config set registry http://mirrors.cloud.tencent.com/npm/ # 安装依赖 -RUN npm install +RUN npm install && npm install @vue/cli-service --save-dev # 复制源代码 COPY . . # 构建应用 -RUN npx vue-cli-service build || npm run build +RUN node_modules/.bin/vue-cli-service build || npm run build # 生产阶段 FROM nginx:stable-alpine