From 937b2cf1fbb0d9f297a1fda77d9a0d147af59a56 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Sat, 15 Aug 2026 15:16:11 -0400 Subject: [PATCH] chore: Use `bun` install script in Dockerfile (attempted fix for CPU support) --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f6886b..811188c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,11 @@ # Node 22 alpine + Bun, shared by all three stages. FROM node:22-alpine AS base RUN apk add --no-cache libc6-compat wget \ - && npm install -g bun@1.3.11 \ - && bun --version && node --version +# && npm install -g bun@1.3.11 \ +# && bun --version && node --version + +# Bun (baseline) for CPU without support for AVX/AVX2 +RUN curl -fsSL https://bun.sh/install | bash # ────────────────────────── prod-deps ──────────────────────────── # Production-only install. Used at runtime alongside the standalone @@ -68,7 +71,7 @@ RUN bun run build # Final production image: Next standalone runtime + full prod deps # (for payload bins) + src/migrations (for `bun run payload `). FROM base AS runner -WORKDIR /app +WORKDIR /appregistry.onyxsimple.com/polaris-task-force ENV NODE_ENV=production \ NEXT_TELEMETRY_DISABLED=1 \