优化docker相关
This commit is contained in:
@@ -8,7 +8,8 @@ ENV NPM_CONFIG_REGISTRY=${NPM_REGISTRY}
|
||||
WORKDIR /app
|
||||
|
||||
COPY apps/frontend/package.json apps/frontend/package-lock.json ./
|
||||
RUN npm install
|
||||
RUN --mount=type=cache,target=/root/.npm,sharing=locked \
|
||||
npm ci
|
||||
|
||||
COPY apps/frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user