File size: 2,075 Bytes
e67d3a6 de4c6a0 e67d3a6 de4c6a0 55ed30b de4c6a0 55ed30b 676233e 55ed30b e67d3a6 55ed30b de4c6a0 e67d3a6 de4c6a0 55ed30b de4c6a0 55ed30b 8c73a12 55ed30b 8c73a12 e67d3a6 8c73a12 55ed30b e67d3a6 55ed30b e67d3a6 55ed30b 8c73a12 e67d3a6 8c73a12 de4c6a0 8c73a12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Jakarta
ENV NODE_OPTIONS="--dns-result-order=ipv4first"
# 1. Injeksi tool esensial & paket SUDO (Kunci Pembobol Root)
RUN apt-get update && apt-get install -y \
curl git ca-certificates build-essential python3 sudo \
&& rm -rf /var/lib/apt/lists/*
# 2. Instalasi Node.js 22 LTS Native
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# 3. [INJEKSI ROOT MUTLAK] Buat User 1000 dan berikan akses Sudo absolut
RUN useradd -m -u 1000 user \
&& echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
WORKDIR /app
RUN chown -R user:user /app
USER user
# 4. Dummy Web Server 24/7
RUN echo "const http = require('http'); http.createServer((req, res) => { res.writeHead(200); res.end('AQSOBOTZ NATIVE ROOT'); }).listen(7860);" > health.js
# 5. THE ULTIMATE ROOT STARTUP SCRIPT
RUN cat << 'EOF' > /app/start.sh
#!/bin/bash
echo "[AQSO LOGIC] Mengeksekusi Hak Root: Membobol perlindungan DNS Host..."
# Menggunakan sudo tee untuk memaksa write pada file bind mount read-only
echo -e "nameserver 8.8.8.8\nnameserver 1.1.1.1" | sudo tee /etc/resolv.conf > /dev/null
echo "[AQSO LOGIC] Validasi Injeksi DNS Sistem:"
cat /etc/resolv.conf
echo "[AQSO LOGIC] Memulai Server Dummy 24/7 di Port 7860..."
node /app/health.js &
echo "[AQSO LOGIC] Menarik Repository Github..."
rm -rf /app/bot
git clone https://github.com/Aqsobb/rut.git /app/bot
cd /app/bot
echo "[AQSO LOGIC] Instalasi dependensi (Clear Cache)..."
npm cache clean --force
npm install --no-audit --no-fund
echo "[AQSO LOGIC] Injeksi Modul Telegram Mutlak..."
npm install node-telegram-bot-api --save
echo "[AQSO LOGIC] Menjalankan AQSOBOTZ..."
if grep -q "\"start\"" package.json 2>/dev/null; then
npm start
elif [ -f "index.js" ]; then
node index.js
elif [ -f "main.js" ]; then
node main.js
else
echo "[FATAL ERROR] File utama bot tidak ditemukan!"
tail -f /dev/null
fi
EOF
RUN chmod +x /app/start.sh
EXPOSE 7860
CMD ["bash", "/app/start.sh"]
|