diff --git a/apps/server/Dockerfile b/apps/server/Dockerfile index 422fbe27e..98e6cb40b 100644 --- a/apps/server/Dockerfile +++ b/apps/server/Dockerfile @@ -23,9 +23,11 @@ COPY packages/ ./packages/ COPY apps/server/ ./apps/server/ # Incremental install - only installs NEW/UPDATED packages since base +# Force reinstall to ensure all dependencies are properly linked RUN START=$(date +%s) && \ echo "=== Starting incremental dependency update ===" && \ - time pnpm install --ignore-scripts && \ + rm -rf node_modules && \ + time pnpm install --ignore-scripts --frozen-lockfile && \ END=$(date +%s) && \ echo "Finished dependency update in $((END - START)) seconds"