Download Dockerfile from VortexCr/My-RDP: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/VortexCr/My-RDP/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/VortexCr/My-RDP/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/VortexCr/My-RDP/resolve/main/Dockerfile
1.11 kB
| FROM debian:bullseye | |
| # Kurulumu sessiz moda al ve her şeyi yükle | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Gerekli paketler + sudo + chromium + yönetici araçları | |
| RUN apt-get update && apt-get install -y \ | |
| xvfb \ | |
| x11vnc \ | |
| novnc \ | |
| net-tools \ | |
| python3-websockify \ | |
| python3-numpy \ | |
| xfce4 \ | |
| xfce4-terminal \ | |
| chromium \ | |
| sudo \ | |
| dbus-x11 \ | |
| procps \ | |
| curl \ | |
| lsb-release \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Hugging Face'in beklediği kullanıcıyı oluştur ama sudo yetkisi ver | |
| RUN useradd -m -u 1000 user && \ | |
| echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| # KRİTİK DEĞİŞİKLİK: Doğrudan ROOT olarak çalıştırıyoruz | |
| USER root | |
| ENV HOME=/root \ | |
| PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ | |
| DISPLAY=:1 | |
| WORKDIR /root | |
| # Başlangıç betiği (Masaüstü ve VNC'yi root olarak başlatır) | |
| CMD ["sh", "-c", "Xvfb :1 -screen 0 1280x720x16 & sleep 3 && startxfce4 & sleep 3 && x11vnc -display :1 -nopw -forever -shared -bg && /usr/share/novnc/utils/launch.sh --vnc localhost:5900 --listen 7860"] |