From 258eb9464eebcd090d1dd6b91d5795047e6502aa Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 10 Apr 2026 13:44:15 +0200 Subject: [PATCH] fix(deploy): throttle build workers to 1 to prevent OOM and fix entrypoint --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e0bb6f..4c14989 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,7 @@ ENV S3_PREFIX=$S3_PREFIX ENV DATABASE_URI=$DATABASE_URI ENV PAYLOAD_SECRET=$PAYLOAD_SECRET ENV SKIP_RUNTIME_ENV_VALIDATION=true +ENV NEXT_BUILD_WORKERS=1 ENV CI=true # Copy manifest files specifically for better layer caching @@ -84,4 +85,4 @@ USER nextjs # Start from the app directory to ensure references solve correctly # In Standalone mode, Next.js expects node_modules and public relative to the server.js WORKDIR /app -CMD ["node", "apps/web/server.js"] +CMD ["node", "server.js"]