From 7a30d14f0f75da39a84be59468a03ffeb7b41eeb Mon Sep 17 00:00:00 2001 From: Malin Date: Tue, 10 Mar 2026 09:42:48 +0100 Subject: [PATCH] fix: skip Cypress binary download in Docker build (CYPRESS_INSTALL_BINARY=0) --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index db8131a..1d0f615 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM node:lts-alpine AS deps RUN apk add --no-cache libc6-compat WORKDIR /app COPY package.json package-lock.json* ./ +# Skip Cypress binary download — not needed in production +ENV CYPRESS_INSTALL_BINARY=0 RUN npm install --legacy-peer-deps # ── Stage 2: build the Next.js app ──────────────────────────────────────────