Spaces:
Running
Running
| # Dockerfile | |
| # Use an official Node.js runtime as the base image | |
| FROM node:lts | |
| # Set the working directory in the container | |
| WORKDIR /usr/src/app | |
| # Copy package.json and package-lock.json to the container | |
| COPY package.json package-lock.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| VOLUME /data | |
| # Copy the rest of the application files to the container | |
| COPY . . | |
| # Expose the application port (assuming your app runs on port 3000) | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["npm", "start"] |