chore: Use bun install script in Dockerfile (attempted fix for CPU support)
This commit is contained in:
parent
9245f826fd
commit
937b2cf1fb
1 changed files with 6 additions and 3 deletions
|
|
@ -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 <bin>`).
|
||||
FROM base AS runner
|
||||
WORKDIR /app
|
||||
WORKDIR /appregistry.onyxsimple.com/polaris-task-force
|
||||
|
||||
ENV NODE_ENV=production \
|
||||
NEXT_TELEMETRY_DISABLED=1 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue