Spaces:
Runtime error
Runtime error
Download Dockerfile from ShieldX/houseofruqaapi: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/ShieldX/houseofruqaapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ShieldX/houseofruqaapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ShieldX/houseofruqaapi/resolve/main/Dockerfile
455 Bytes
| # Use the official lightweight Node.js image | |
| FROM node:22-alpine | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Hugging Face Spaces expose port 7860 by default | |
| EXPOSE 7860 | |
| # Set the PORT environment variable for our server.js to pick up | |
| ENV PORT=7860 | |
| # Command to start the app | |
| CMD ["npm", "start"] | |