更新
This commit is contained in:
@@ -15,9 +15,9 @@ services:
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
# volumes:
|
||||
# - ./frontend:/app
|
||||
# - /app/node_modules
|
||||
ports:
|
||||
- "15173:15173"
|
||||
environment:
|
||||
|
||||
@@ -6,7 +6,7 @@ WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install
|
||||
RUN npm install --registry=https://registry.npmmirror.com
|
||||
|
||||
# 复制项目文件
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user