Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions console/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# node:24-slim (glibc), not -alpine: Next.js's own SWC/Turbopack native
# bindings only ship glibc builds, so npm install must run on the same libc
# as the final runtime or the build's native bindings won't load at runtime.
FROM node:24-slim AS deps
FROM node:25-slim AS deps
WORKDIR /app
# better-sqlite3/bcrypt ship prebuilt binaries for common platforms, but
# fall back to compiling from source if none matches — keep the toolchain
Expand All @@ -11,13 +11,13 @@ RUN apt-get update -qq && apt-get install -y -qq python3 make g++ \
COPY package.json package-lock.json ./
RUN npm ci

FROM node:24-slim AS builder
FROM node:25-slim AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build

FROM node:24-slim AS runner
FROM node:25-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
# Docker auto-sets HOSTNAME to the container ID; Next's standalone server.js
Expand Down
Loading