FROM node:20-slim # Install build tools for better-sqlite3 RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package*.json ./ RUN npm install --production COPY . . # Create db directory RUN mkdir -p /app/data EXPOSE 7860 CMD ["node", "server.js"]