Spaces:
Sleeping
Sleeping
| # Use the official Node.js 16 image as a parent image | |
| FROM node:16 | |
| # Set the working directory in the container | |
| WORKDIR /usr/src/app | |
| # Copy the package.json and package-lock.json (if available) | |
| COPY package*.json ./ | |
| # Install any dependencies | |
| RUN npm install | |
| # Copy the rest of your application's code | |
| COPY . . | |
| # Make sure the public directory exists (if your app depends on it) | |
| RUN mkdir -p ./public | |
| # Your application's default port, expose it if necessary | |
| EXPOSE 7860 | |
| # Command to run your app | |
| CMD ["node", "index.mjs"] | |