Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(docker): prevent web build oom by allocating more memory to build step in Dockerfile (#3217)

Marc Klingen61b596c46a7e
diff --git a/web/Dockerfile b/web/Dockerfile
index 9a1603dee5..f8cfe084a5 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -61,7 +61,7 @@ RUN rm -f ./web/src/middleware.ts
ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_MANUAL_SIG_HANDLE true
-RUN turbo run build --filter=web
+RUN NODE_OPTIONS='--max-old-space-size=4096' turbo run build --filter=web
# Production image, copy all the files and run next
FROM --platform=${TARGETPLATFORM:-linux/amd64} base AS runner