englab53/Tier3
0
1FROM 9hitste/app:latest2 3USER root4 5# Step 1: Node.js install karen status page ke liye6RUN apt-get update && apt-get install -y curl && \7 curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \8 apt-get install -y nodejs && \9 rm -rf /var/lib/apt/lists/*10 11WORKDIR /12 13# Step 2: Simple Node.js Server (server.js) banayein takay Port 7860 active rahe14RUN echo 'const http = require("http"); \15const server = http.createServer((req, res) => { \16 res.writeHead(200, { "Content-Type": "text/html" }); \17 res.end("<h1>9Hits Engine is Running on Node.js!</h1>"); \18}); \19server.listen(7860, "0.0.0.0", () => { \20 console.log("Server running on port 7860"); \21});' > server.js22 23# Step 3: Self-Ping Logic (Har 5 min baad hits maarega)24RUN echo 'while true; do curl -s http://localhost:7860 > /dev/null; sleep 300; done &' > /keep_alive.sh && chmod +x /keep_alive.sh25 26# Step 4: Hugging Face port27EXPOSE 786028 29# Step 5: 9Hits + Self-Ping + Node Server30# Token: 69bac734759ac72df366a31dd98af92b31CMD /keep_alive.sh & /nh.sh --token=69bac734759ac72df366a31dd98af92b --system-session --ex-proxy-sessions=25 --allow-crypto=no --session-note=9hits-pool --note=teerup --hide-browser --no-sandbox --disable-dev-shm-usage & node server.js