- Update backend/Dockerfile: node:18 → node:24 (LTS) - Node 24 provides longer support window and latest features - Tested: Build successful (127s), container starts cleanly, all services working Phase 1 refined: Backend now on Node 24 LTS with extended support timeline.
21 lines
343 B
Docker
21 lines
343 B
Docker
FROM node:24
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
# Note: Node 24 LTS (v24.11.0) uses Debian Bookworm
|
|
|
|
# Install sqlite3 CLI
|
|
RUN apt-get update && apt-get install -y sqlite3 && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY package*.json ./
|
|
|
|
# Development
|
|
RUN npm install
|
|
|
|
# Production
|
|
# RUN npm ci --only=production
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 5000
|
|
CMD [ "node", "src/index.js" ] |