瀏覽代碼

fix: 前端打包问题

wuwenyi 2 周之前
父節點
當前提交
2961c370aa
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -1,8 +1,8 @@
 FROM node:18-alpine AS build
 WORKDIR /app
-COPY package*.json ./
-RUN npm config set registry https://registry.npmmirror.com && npm install
+RUN npm config set registry https://registry.npmmirror.com
 COPY . .
+RUN npm install --legacy-peer-deps
 RUN npx vite build
 
 FROM nginx:1.27-alpine