diff --git a/Dockerfile b/Dockerfile index 68317a5..8d600b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN npm install COPY . . # 构建应用 -RUN npm run build +RUN npx vue-cli-service build || npm run build # 生产阶段 FROM nginx:stable-alpine