Spaces:
Runtime error
Runtime error
| # Use Node.js LTS version as the base image | |
| FROM node:18 | |
| # Set the working directory inside the container | |
| WORKDIR /usr/src/app | |
| # Copy package.json and package-lock.json into the container | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the application files into the container | |
| COPY . . | |
| # Expose the application port | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["npm", "start"] |