| # Use the official Node.js image | |
| FROM node:18 | |
| # Create an app directory | |
| WORKDIR /app | |
| # Copy package files and install | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy all other files (like server.js and your public folder) | |
| COPY . . | |
| # Expose the correct port | |
| EXPOSE 7860 | |
| # Start the app | |
| CMD ["npm", "start"] |