Project-Image-Uploader/backend/Dockerfile
matthias.lotz acdb2fa6cd refactor(backend): upgrade to Node 24 LTS (v24.11.0)
- 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.
2025-10-28 20:35:03 +01:00

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" ]