CatPtain commited on
Commit
1730f8b
·
verified ·
1 Parent(s): c437678

Upload 3 files

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -12,11 +12,11 @@ COPY frontend/package*.json ./frontend/
12
 
13
  # 安装后端依赖
14
  WORKDIR /app/backend
15
- RUN npm ci --only=production
16
 
17
  # 安装前端依赖并构建
18
  WORKDIR /app/frontend
19
- RUN npm ci
20
  COPY frontend/ ./
21
  RUN npm run build
22
 
 
12
 
13
  # 安装后端依赖
14
  WORKDIR /app/backend
15
+ RUN npm install --omit=dev
16
 
17
  # 安装前端依赖并构建
18
  WORKDIR /app/frontend
19
+ RUN npm install
20
  COPY frontend/ ./
21
  RUN npm run build
22