- Dockerfiles (admin-ui, collector-worker, ingest-api): node:20-bookworm-slim → node:24-bookworm-slim - CI (.gitea/workflows/ci.yml): node-version '20' → '24' in all 3 jobs - package.json engines.node: '>=20' → '>=24.22.1' (admin-ui, api, collector-worker, ingest-api, web) - @types/node: ^20/^22 → ^24 in all packages - api: bcrypt ^5.1.1 → ^6.0.0 (Node 24 prebuilt binary compat) - clients/php/ErrorReporter.php: PHP 8.4+ compat audit (no deprecated patterns) - clients/node/errorReporter.mjs: Node 24+ doc update All tests verified locally: - api: 51/51 passed (vitest) - ingest-api: 40 passed + 14 skipped (vitest) - collector-worker: 12/12 passed (vitest) - admin-ui: lint + typecheck clean - web: lint + typecheck + build clean Paperclip-Agent: Nelson Baptista (urlKey nelson-baptista; id e34f1b0f-62db-487c-8584-f6a47203f7b5) Paperclip-Issue: BIT-31723 Paperclip-Run: 76d06689-1879-421f-ad2c-04f5fe85d21d
27 lines
743 B
Docker
27 lines
743 B
Docker
# Next.js 15 admin UI (Velzon-style) — production image for docker-compose.
|
|
FROM node:24-bookworm-slim AS deps
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
FROM node:24-bookworm-slim AS build
|
|
WORKDIR /app
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
RUN npm run build
|
|
|
|
FROM node:24-bookworm-slim AS runner
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
ENV PORT=3040
|
|
ENV HOSTNAME=0.0.0.0
|
|
RUN addgroup --system --gid 1001 nodejs \
|
|
&& adduser --system --uid 1001 nextjs
|
|
COPY --from=build --chown=nextjs:nodejs /app/.next/standalone ./
|
|
COPY --from=build --chown=nextjs:nodejs /app/.next/static ./.next/static
|
|
USER nextjs
|
|
EXPOSE 3040
|
|
CMD ["node", "server.js"]
|