From 872f6d2e86d0c7aaf1ff9b6fefe67186daca0141 Mon Sep 17 00:00:00 2001 From: John Sell Date: Sat, 30 May 2026 11:57:59 -0400 Subject: [PATCH] fix(ambient-ui): fix Docker build for standalone output - Build SDK dist in Docker (ts-sdk dist/ is gitignored) - Copy standalone output from correct nested path (outputFileTracingRoot nests under components/ambient-ui/) - Use webpack for production build (Turbopack can't resolve file: deps) Co-Authored-By: Claude Opus 4.6 (1M context) --- components/ambient-ui/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/ambient-ui/Dockerfile b/components/ambient-ui/Dockerfile index 6ce0f9974..a1dfefb6e 100644 --- a/components/ambient-ui/Dockerfile +++ b/components/ambient-ui/Dockerfile @@ -36,8 +36,11 @@ RUN npm run build # Prepare standalone output with OpenShift-compatible permissions in the builder # (the hardened runner image is distroless — no shell or chmod available) +# outputFileTracingRoot is set to ../.. (monorepo root), so standalone output +# nests files under components/ambient-ui/ within .next/standalone/ RUN mkdir -p /app-output/public /app-output/.next/static && \ - cp -r .next/standalone/. /app-output/ && \ + cp -r .next/standalone/components/ambient-ui/. /app-output/ && \ + cp -r .next/standalone/node_modules /app-output/node_modules 2>/dev/null || true && \ cp -r .next/static/. /app-output/.next/static/ && \ cp -r public/. /app-output/public/ && \ chmod -R g=u /app-output && \