This commit is contained in:
jeremygan2021
2026-02-10 21:56:17 +08:00
parent ee88c5b3e1
commit 8a3fd6441e
2 changed files with 4 additions and 4 deletions

View File

@@ -15,9 +15,9 @@ services:
frontend: frontend:
build: ./frontend build: ./frontend
volumes: # volumes:
- ./frontend:/app # - ./frontend:/app
- /app/node_modules # - /app/node_modules
ports: ports:
- "15173:15173" - "15173:15173"
environment: environment:

View File

@@ -6,7 +6,7 @@ WORKDIR /app
# Install dependencies # Install dependencies
COPY package.json package-lock.json* ./ COPY package.json package-lock.json* ./
RUN npm install RUN npm install --registry=https://registry.npmmirror.com
# 复制项目文件 # 复制项目文件
COPY . . COPY . .