| # Use the official Node.js image | |
| FROM node:18 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json and install dependencies | |
| COPY package.json . | |
| RUN npm install | |
| # Copy the rest of the application | |
| COPY . . | |
| # Expose the port the app runs on | |
| EXPOSE 8000 | |
| # Start the application | |
| CMD ["npm", "start"] |