FROM node:24-alpine
WORKDIR /app
COPY apps/backend/package*.json ./
RUN apk add --no-cache python3 make g++ && npm ci --omit=dev
COPY apps/backend/ .
COPY apps/API/ /API/
RUN mkdir -p /app/data
EXPOSE 3001
CMD ["node", "server.js"]
