From 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7 Mon Sep 17 00:00:00 2001 From: 罗广辉 <guanghui.luo@foxmail.com> Date: Mon, 21 Apr 2025 18:29:09 +0800 Subject: [PATCH] fix: 天气显示 --- Dockerfile.test | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Dockerfile.test b/Dockerfile.test index 62b8fe3..b463a31 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -5,19 +5,12 @@ WORKDIR /app # 将当前目录(Vue 项目目录)的内容复制到 /app 目录中 - -COPY package*.json . -COPY vite.config.js . - -# 安装项目依赖 -RUN rm -rf node_modules && npm install --registry=https://registry.npmmirror.com - COPY . . -# 验证字体文件是否被正确复制 -RUN ls -la src/assets/fonts/YouSheBiaoTiHei.ttf || echo "检查字体文件路径" +# 安装项目依赖 +RUN rm -rf node_modules package-lock.json && npm install --registry=https://registry.npmmirror.com # 构建项目 -RUN npm run build:dev +RUN npm run build:test # 查看 -RUN ls /app/dist \ No newline at end of file +RUN ls /app/dist -- Gitblit v1.9.3