Upload 3 files
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -12,11 +12,11 @@ COPY frontend/package*.json ./frontend/
|
|
12 |
|
13 |
# 安装后端依赖
|
14 |
WORKDIR /app/backend
|
15 |
-
RUN npm
|
16 |
|
17 |
# 安装前端依赖并构建
|
18 |
WORKDIR /app/frontend
|
19 |
-
RUN npm
|
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 |
|