Spaces:
Paused
Paused
Download Dockerfile from void0028/termux-cloud: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/spaces/void0028/termux-cloud/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/void0028/termux-cloud/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/void0028/termux-cloud/resolve/main/Dockerfile
1.51 kB
| FROM ubuntu:22.04 | |
| # 1. PC-Grade Setup | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /root | |
| # 2. Install God Mode Tools (SSH, Tunnel, PC Power) | |
| RUN apt-get update && apt-get install -y \ | |
| openssh-server \ | |
| curl \ | |
| wget \ | |
| git \ | |
| tmux \ | |
| python3 \ | |
| python3-pip \ | |
| sudo \ | |
| htop \ | |
| build-essential \ | |
| net-tools \ | |
| iputils-ping \ | |
| && curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb -o cloudflared.deb \ | |
| && dpkg -i cloudflared.deb \ | |
| && rm cloudflared.deb \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 3. Configure SSH (The Secure Entrance) | |
| RUN mkdir /var/run/sshd | |
| # SET YOUR PASSWORD HERE (Replace 'void0028_pass' with something strong) | |
| RUN echo 'root:void0028_pass' | chpasswd | |
| RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
| RUN sed -i 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' /etc/pam.d/sshd | |
| # 4. System-wide Aliases (For Termux muscle memory in SSH) | |
| RUN echo "alias pkg='apt'" >> /etc/bash.bashrc && \ | |
| echo "alias python='python3'" >> /etc/bash.bashrc && \ | |
| echo "alias pip='pip3'" >> /etc/bash.bashrc | |
| # 5. Launch Command (Using your specific Cloudflare Token) | |
| EXPOSE 7860 | |
| CMD service ssh start && \ | |
| cloudflared tunnel --no-autoupdate run --token eyJhIjoiYTIxZGE4ZDU2NDI0MzZjMTBlNmFjZjFlMjg2YjlkNDkiLCJ0IjoiZjM2NGQzZjAtNGU2Yi00NjMxLWI4OGQtOTc0NTE4YzZkM2Q2IiwicyI6Ik9ERmhZakF5WVRJdFpUSXdOeTAwTlRZMExUazBPREl0T1RFMllqWmxPV1E0TXpFdyJ9 |