- 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.
21 lines
397 B
Docker
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" ] |