Spaces:
Runtime error
Runtime error
| # Use the official Node.js 16 image as a parent image | |
| FROM node:20 | |
| # Set the working directory inside the container to /app | |
| WORKDIR /app | |
| # Copy the package.json and package-lock.json (if available) to /app | |
| COPY package*.json ./ | |
| # Install project dependencies inside the container | |
| RUN npm install | |
| # Copy the rest of your application's source code from your host to your image filesystem. | |
| COPY . . | |
| # Make port 7860 available to the world outside this container | |
| EXPOSE 7860 | |
| # Command to run your app using Node.js | |
| CMD ["node", "server.js"] |