upgrade to Node 24 LTS + @types/node v24
- Dockerfile: node:20-slim → node:24-slim (all 3 stages) - @types/node: ^20.12.12 → ^24.0.0 - Fixes EBADENGINE warning (@discordjs/voice requires Node >=22) - Brings npm 11 automatically - Node 24 LTS supported until April 2028
This commit is contained in:
parent
5d01d3b4db
commit
cde29698ca
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# Multi-stage build: Frontend (Vite) + Backend (Express + discord.js)
|
# Multi-stage build: Frontend (Vite) + Backend (Express + discord.js)
|
||||||
|
|
||||||
# --- Build frontend (npm) ---
|
# --- Build frontend (npm) ---
|
||||||
FROM node:20-slim AS web-build
|
FROM node:24-slim AS web-build
|
||||||
WORKDIR /app/web
|
WORKDIR /app/web
|
||||||
COPY web/package*.json ./
|
COPY web/package*.json ./
|
||||||
RUN npm install --no-audit --no-fund
|
RUN npm install --no-audit --no-fund
|
||||||
|
|
@ -14,7 +14,7 @@ ENV VITE_APP_VERSION=$VITE_APP_VERSION
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# --- Build server (npm) ---
|
# --- Build server (npm) ---
|
||||||
FROM node:20-slim AS server-build
|
FROM node:24-slim AS server-build
|
||||||
WORKDIR /app/server
|
WORKDIR /app/server
|
||||||
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
|
||||||
COPY server/package*.json ./
|
COPY server/package*.json ./
|
||||||
|
|
@ -25,7 +25,7 @@ RUN npm run build
|
||||||
RUN rm -rf node_modules && npm install --omit=dev --no-audit --no-fund
|
RUN rm -rf node_modules && npm install --omit=dev --no-audit --no-fund
|
||||||
|
|
||||||
# --- Runtime image ---
|
# --- Runtime image ---
|
||||||
FROM node:20-slim AS runtime
|
FROM node:24-slim AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV PORT=8080
|
ENV PORT=8080
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
"@types/cors": "^2.8.17",
|
"@types/cors": "^2.8.17",
|
||||||
"@types/express": "^5.0.6",
|
"@types/express": "^5.0.6",
|
||||||
"@types/multer": "^2.0.0",
|
"@types/multer": "^2.0.0",
|
||||||
"@types/node": "^20.12.12",
|
"@types/node": "^24.0.0",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue