# Use Node.js 18 base image FROM node:18 # Install build tools for node-pty RUN apt-get update && apt-get install -y \ python3 \ make \ g++ \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy package.json and install dependencies COPY package.json . RUN npm install # Copy application files COPY . . # Expose port 7860 EXPOSE 7860 # Start the application CMD ["npm", "start"]