# SDS CRM — Node 22 (built-in node:sqlite)
FROM node:22-bookworm-slim

WORKDIR /app

COPY package.json package-lock.json ./
RUN npm ci --omit=dev

# Anwendungsdateien kopieren
COPY . .

ENV NODE_ENV=production
ENV PORT=8888

EXPOSE 8888

CMD ["node", "server/index.js"]
