Project-Image-Uploader/backend/Dockerfile
matthias.lotz fd3a10657a feat(backend): upgrade Node 14 → 18 (Phase 1)
- Update backend/Dockerfile: FROM node:14 → node:18
- Remove Debian Buster EOL repository workarounds (Node 18 uses Bullseye)
- Tested: Docker build successful, container starts cleanly, DB initializes

Phase 1 complete: Backend runtime now on Node 18 LTS.
2025-10-28 20:25:26 +01:00

21 lines
397 B
Docker

FROM node:18
WORKDIR /usr/src/app
# Note: Node 18 uses Debian Bullseye which is still supported, so no archive.debian.org workaround needed
# 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" ]