fix: Node 18->22 in Dockerfile for terser compat
Dockerfile was pinned to node:18-alpine which can't load crypto synchronously in @rollup/plugin-terser -> serialize-javascript. Upgrading build stage to node:22-alpine to match host Node.
This commit is contained in:
parent
71dfbe36cc
commit
c0cb02dbd9
|
|
@ -1,5 +1,5 @@
|
|||
# ── Stage 1: Build ─────────────────────────────────────────
|
||||
FROM node:18-alpine AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# native build deps (better-sqlite3 etc)
|
||||
|
|
@ -17,7 +17,7 @@ RUN npm run build
|
|||
|
||||
|
||||
# ── Stage 2: Runtime ───────────────────────────────────────
|
||||
FROM node:18-alpine
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# minimal tools for debugging inside container + privilege drop in entrypoint
|
||||
|
|
|
|||
Loading…
Reference in New Issue