feat: optimize Dockerfiles for dependency installation and update ngsw-config.json to remove unused data groups
This commit is contained in:
+3
-1
@@ -1,3 +1,4 @@
|
||||
# syntax=docker/dockerfile:1.4
|
||||
# ---------- Build stage ----------
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
@@ -9,7 +10,8 @@ WORKDIR /app
|
||||
RUN npm install -g pnpm
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store \
|
||||
pnpm config set store-dir /pnpm/store && pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user