Spaces:
Sleeping
Sleeping
Download Dockerfile from xTHExBEASTx/my-private-linux: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/xTHExBEASTx/my-private-linux/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xTHExBEASTx/my-private-linux/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xTHExBEASTx/my-private-linux/resolve/main/Dockerfile
648 Bytes
| # 1. Base OS | |
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # 2. Install basic tools | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| git \ | |
| wget \ | |
| nano \ | |
| python3 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 3. Install VS Code server (Visual File Manager + Terminal) | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| # 4. Create the required Hugging Face user (UID 1000) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user | |
| WORKDIR $HOME/workspace | |
| # 5. Start the server on the correct port (7860) with no password required | |
| CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "--disable-telemetry"] |