FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive # 🔧 Update system RUN apt-get update && apt-get upgrade -y # 📦 Install base tools RUN apt-get install -y \ curl \ wget \ git \ sudo \ nano \ ca-certificates \ python3 \ python3-pip \ ttyd \ docker.io \ && rm -rf /var/lib/apt/lists/* # 🟢 Install Node.js (LTS) + npm RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs # 👤 Create user RUN useradd -m user && echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers USER user WORKDIR /home/user # 🌐 Expose HF port EXPOSE 7860 # 🚀 Start web terminal CMD ttyd -p 7860 bash