FROM ubuntu:latest # Update package lists and install dependencies RUN apt-get update && \ apt-get install -y software-properties-common curl git && \ add-apt-repository ppa:deadsnakes/ppa -y # Install Node.js RUN apt-get install -y nodejs npm # Set the working directory WORKDIR /app # Copy package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the application code COPY . . # Expose the port EXPOSE 7860 # Run the application CMD ["node", "server.js"]