Download Dockerfile from underrate/9router: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/spaces/underrate/9router/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/underrate/9router/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/underrate/9router/resolve/main/Dockerfile
476 Bytes
| FROM node:20-slim | |
| # Port mapping ke liye hum 'socat' tool install kar rahe hain | |
| RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| RUN chmod 777 /app | |
| ENV HOME=/app | |
| # 9router ko globally install karna | |
| RUN npm install -g 9router | |
| EXPOSE 7860 | |
| # 1. Auto 'Enter' press karne aur | |
| # 2. Port 20128 ko 7860 par forward karne ka setup | |
| CMD bash -c "{ echo ''; cat; } | 9router & socat TCP-LISTEN:7860,fork TCP:127.0.0.1:20128" |