Spaces:
Paused
Paused
Update Dockerfile
Browse files1 unmodified line23456789101112131415161718192021222324252627282930313233341 unmodified lineENV DEBIAN_FRONTEND=noninteractive# 1. Add i386 and install the "Missing" bus dependencies firstUSER rootRUN dpkg --add-architecture i386 && \apt-get update && \apt-get install -y --no-install-recommends \wget ca-certificates gdebi-core xvfb curl \python3 nodejs npm \dbus-x11 dbus-user-session \libgl1:i386 libdrm2:i386 libx11-6:i386 \&& rm -rf /var/lib/apt/lists/*# 2. Setup the D-Bus environment so the installer doesn't panicRUN mkdir -p /var/run/dbus && \dbus-uuidgen > /var/lib/dbus/machine-id# 3. Install Steam Launcher# We use 'apt-get install -y ./*.deb' which is smarter than gdebi for dependenciesRUN wget https://repo.steampowered.com/steam/archive/precise/steam_latest.deb -O steam.deb && \apt-get install -y ./steam.deb || apt-get install -y -f && \rm steam.deb# 4. Setup Hugging Face UserRUN useradd -m -u 1000 userUSER userENV HOME=/home/userWORKDIR $HOME# 5. Startup with a "Fake" D-Bus session# This ensures Steam has a 'bus' to talk to even without a desktopCMD ["xvfb-run", "-a", "dbus-run-session", "--", "node", "bot.js"]1 unmodified line23456789101112131415161718192021222324252627282930313233343536371 unmodified lineENV DEBIAN_FRONTEND=noninteractive# 1. UNLOCK REPOSITORIES & ARCHITECTURE# We must enable 'universe' and 'multiverse' for libnss3, zenity, etc.USER rootRUN apt-get update && \apt-get install -y software-properties-common && \add-apt-repository universe && \add-apt-repository multiverse && \dpkg --add-architecture i386 && \apt-get update# 2. INSTALL ALL MISSING DEPENDENCIES MANUALLY# We list the exact things the error complained aboutRUN apt-get install -y --no-install-recommends \wget ca-certificates gdebi-core xvfb curl \python3 nodejs npm \dbus-x11 dbus-user-session \libgl1:i386 libdrm2:i386 libx11-6:i386 \libnss3 lsof pkexec xdg-user-dirs xterm xz-utils zenity \&& rm -rf /var/lib/apt/lists/*# 3. INSTALL STEAMRUN wget https://repo.steampowered.com/steam/archive/precise/steam_latest.deb -O steam.deb && \apt-get install -y ./steam.deb || apt-get install -y -f && \rm steam.deb# 4. HUGGING FACE USER SETUPRUN useradd -m -u 1000 userUSER userENV HOME=/home/userWORKDIR $HOME# 5. START WITH VIRTUAL BUSCMD ["xvfb-run", "-a", "dbus-run-session", "--", "node", "bot.js"]
Dockerfile+16-13