Spaces:
Sleeping
Sleeping
| # Use an official Node.js image as the base | |
| FROM node:20.6.1 | |
| # Set the working directory to /app | |
| WORKDIR /app | |
| # Copy the package*.json files into the container | |
| COPY package*.json ./ | |
| # Install the dependencies | |
| RUN npm install | |
| # Copy the rest of the application code into the container | |
| COPY . . | |
| RUN npm run build | |
| # Expose the port that the application will use | |
| EXPOSE 7860 | |
| # Run the command to start the application | |
| CMD ["npm", "start"] |