| # Use an official Node.js runtime as the base image | |
| FROM node:14 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json to the working directory | |
| COPY package*.json ./ | |
| # Install the project dependencies | |
| RUN npm install | |
| # Copy the rest of the project files to the working directory | |
| COPY . . | |
| # Expose port 8080 for the application | |
| EXPOSE 8080 | |
| # Specify the command to run your application | |
| CMD ["npm", "run", "start:dev"] | |