Download Dockerfile from KatHub/README: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/KatHub/README/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KatHub/README/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KatHub/README/resolve/main/Dockerfile
322 Bytes
| # Use Node.js LTS version | |
| FROM node:18 | |
| # Create app directory | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy your index.js and other files | |
| COPY . . | |
| # IMPORTANT: Hugging Face uses port 7860 by default | |
| EXPOSE 7860 | |
| # Start the application | |
| CMD ["node", "index.js"] |