Spaces:
Sleeping
Sleeping
Download Dockerfile from ChiragPatankar/SaaS_Backend: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/spaces/ChiragPatankar/SaaS_Backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChiragPatankar/SaaS_Backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChiragPatankar/SaaS_Backend/resolve/main/Dockerfile
418 Bytes
| # Use the official Node.js LTS image | |
| FROM node:18 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the server code | |
| COPY . . | |
| # Expose the port (Hugging Face expects 7860 by default, but you can set it) | |
| EXPOSE 7860 | |
| # Start the server, binding to 0.0.0.0 and port 7860 | |
| ENV PORT=7860 | |
| CMD [ "npm", "start" ] |