This commit is contained in:
aaron 2025-03-06 23:28:15 +08:00
parent 56475c568b
commit df2ae33d60

View File

@ -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