优化docker相关

This commit is contained in:
yml
2026-05-19 21:41:43 +08:00
parent 4429fb20d7
commit f157fbc87a
5 changed files with 33 additions and 133 deletions
+2 -1
View File
@@ -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