Download Dockerfile from proti0070/Trytrytry: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/proti0070/Trytrytry/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/proti0070/Trytrytry/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/proti0070/Trytrytry/resolve/main/Dockerfile
562 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # π§ Fix sources + update | |
| RUN apt-get update && apt-get upgrade -y | |
| # π¦ Install base packages (safe list) | |
| RUN apt-get install -y \ | |
| curl \ | |
| wget \ | |
| git \ | |
| sudo \ | |
| nano \ | |
| ca-certificates \ | |
| python3 \ | |
| python3-pip \ | |
| ttyd \ | |
| docker.io \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # π€ Create user | |
| RUN useradd -m user && echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| USER user | |
| WORKDIR /home/user | |
| # π Expose port | |
| EXPOSE 7860 | |
| # π Start web shell | |
| CMD ttyd -p 7860 bash |