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 for staging environment
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
@@ -10,7 +11,8 @@ RUN npm install -g pnpm
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
# Install dependencies
|
||||
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 source code
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user