FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive ENV HOSTNAME=Nobita-Terminal # 1. Install Tools, TTYD, & Proot RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates curl wget git sudo procps xz-utils python3-pip proot \ && curl -fsSL https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o /usr/local/bin/ttyd \ && chmod +x /usr/local/bin/ttyd \ && rm -rf /var/lib/apt/lists/* # 2. Stealth Node.js v22 Installation (Manual Binary) RUN wget https://nodejs.org/dist/v22.13.1/node-v22.13.1-linux-x64.tar.xz && \ tar -xJf node-v22.13.1-linux-x64.tar.xz -C /usr/local --strip-components=1 && \ rm node-v22.13.1-linux-x64.tar.xz # 3. Install Gradio (Buat Penyamaran AI) RUN pip install --no-cache-dir gradio # 4. Setup User & Workspace RUN useradd -m -u 1000 user WORKDIR /home/user/app RUN mkdir -p /tmp/dns && chown -R user:user /tmp/dns /home/user/app USER user EXPOSE 7860 # 5. STARTUP: Jalankan Perisai (shield.py) CMD ["python3", "shield.py"]