FROM debian:bullseye # Kurulum sırasında soru sorulmasını engelle ENV DEBIAN_FRONTEND=noninteractive # net-tools (netstat için) ve diğer gerekli paketleri kur RUN apt-get update && apt-get install -y \ xvfb \ x11vnc \ novnc \ net-tools \ python3-websockify \ python3-numpy \ xfce4 \ xfce4-terminal \ firefox-esr \ dbus-x11 \ procps \ curl \ && apt-get clean && rm -rf /var/lib/apt/lists/* # Hugging Face kullanıcı ayarları RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ DISPLAY=:1 WORKDIR $HOME # Başlangıç komutu # --vnc localhost:5900 kısmını launch.sh için netleştirdik CMD ["sh", "-c", "Xvfb :1 -screen 0 1280x720x16 & sleep 2 && x11vnc -display :1 -nopw -forever -shared & /usr/share/novnc/utils/launch.sh --vnc localhost:5900 --listen 7860"]