From 9959e7dbdcae15f7a35391582436e3b2224f3a9c Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Sun, 8 Feb 2026 09:17:10 -0500 Subject: [PATCH] Harden frontend Dockerfile for constrained environments Co-Authored-By: Claude Opus 4.6 --- frontend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a5cf7d4..421682b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,9 +1,9 @@ FROM node:22-alpine AS build WORKDIR /app COPY package*.json ./ -RUN npm ci +RUN npm ci --ignore-scripts COPY . . -RUN npm run build +RUN NODE_OPTIONS="--max-old-space-size=1024" npm run build FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html