Spaces:
Paused
Paused
Download Dockerfile from 32easdsad1/netix-server-cs: direct link, hf CLI and curl.
- Browser
- Download file 935 Bytes
-
https://huggingface.co/spaces/32easdsad1/netix-server-cs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/32easdsad1/netix-server-cs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/32easdsad1/netix-server-cs/resolve/main/Dockerfile
935 Bytes
| FROM ubuntu:24.04 | |
| # 1. Подготовка | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # 2. Ставим XFCE (лёгкий и стабильный) и софт | |
| RUN apt-get update && apt-get install -y \ | |
| xfce4 xfce4-goodies \ | |
| dbus-x11 x11vnc xvfb \ | |
| novnc websockify \ | |
| chromium-browser \ | |
| sudo wget curl mousepad \ | |
| && apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # 3. Юзер nikita | |
| RUN useradd -m -s /bin/bash nikita && \ | |
| echo "nikita:123123123" | chpasswd && \ | |
| usermod -aG sudo nikita | |
| # 4. Настройки экрана | |
| ENV DISPLAY=:1 | |
| USER nikita | |
| WORKDIR /home/nikita | |
| # 5. Порт HF | |
| EXPOSE 7860 | |
| # 6. Запуск (XFCE стартует намного проще Гнома) | |
| CMD ["sh", "-c", "Xvfb :1 -screen 0 1280x720x16 & sleep 2 && export DISPLAY=:1 && startxfce4 & sleep 2 && x11vnc -display :1 -nopw -forever -shared -rfbport 5900 & websockify --web /usr/share/novnc/ 7860 localhost:5900"] |