Spaces:
Paused
Paused
Download Dockerfile from Raintherealone/Vps: direct link, hf CLI and curl.
- Browser
- Download file 868 Bytes
-
https://huggingface.co/spaces/Raintherealone/Vps/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Raintherealone/Vps/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Raintherealone/Vps/resolve/main/Dockerfile
868 Bytes
| FROM ubuntu:22.04 | |
| # Timezone set karo (warna stuck ho jaayega) | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV TZ=Asia/Kolkata | |
| # Basic tools + ttyd | |
| RUN apt update && apt install -y \ | |
| curl \ | |
| wget \ | |
| git \ | |
| vim \ | |
| nano \ | |
| htop \ | |
| python3 \ | |
| python3-pip \ | |
| nodejs \ | |
| npm \ | |
| net-tools \ | |
| iputils-ping \ | |
| dnsutils \ | |
| openssh-client \ | |
| gcc \ | |
| make \ | |
| sudo \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ttyd install (latest binary) | |
| RUN wget -O /usr/local/bin/ttyd https://github.com/tsl0922/ttyd/releases/latest/download/ttyd.x86_64 \ | |
| && chmod +x /usr/local/bin/ttyd | |
| # Non-root user for students (optional) | |
| # RUN useradd -m student && echo "student:password" | chpasswd && usermod -aG sudo student | |
| EXPOSE 7681 | |
| # Start ttyd with bash (enable write, disable SSL for simplicity) | |
| CMD ["ttyd", "--port", "7681", "--writable", "bash"] |