From df2ae33d609d7d3078c32c0ca40a695d2b3fb42a Mon Sep 17 00:00:00 2001 From: aaron <> Date: Thu, 6 Mar 2025 23:28:15 +0800 Subject: [PATCH] update --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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