# Use official Node.js base image FROM node:18-alpine # Set working directory inside container WORKDIR /usr/src/app # Copy package files and install dependencies COPY package*.json ./ RUN npm install # Copy app files COPY . . # Expose the port the app runs on EXPOSE 7860 # Start the application CMD ["npm", "start"]