From 0e05f3a5abfc05c6335bd0f7b243b5877470e5c5 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sat, 14 Feb 2026 19:27:38 -0700 Subject: [PATCH] Fix Docker build: disable Turbopack for file: linked SDK compatibility Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a4e329..695f231 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,14 +12,18 @@ COPY encryptid-sdk /encryptid-sdk/ # Install dependencies RUN npm ci || npm install -# Copy source files +# Copy source files, then restore node_modules COPY rvote-online/ . +RUN rm -rf node_modules .next + +# Re-install to get clean node_modules with SDK resolved +RUN npm ci || npm install # Generate Prisma client RUN npx prisma generate -# Build the application -RUN npm run build +# Build the application (use webpack - Turbopack has issues with file: linked subpath exports) +RUN npx next build --no-turbopack # Production stage FROM node:20-alpine AS runner