Aqso commited on
Commit
49edcb8
·
verified ·
1 Parent(s): a843a0e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -26
Dockerfile CHANGED
@@ -1,45 +1,30 @@
1
  FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
- ENV HOSTNAME=Nobita-Research
5
 
6
- # 1. Install Tools & DNS Hijacker + Proot
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
- ca-certificates curl wget git sudo procps xz-utils python3-pip libnss-wrapper proot \
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # 2. Stealth Node.js v22 (Manual Binary)
12
  RUN wget https://nodejs.org/dist/v22.13.1/node-v22.13.1-linux-x64.tar.xz && \
13
  tar -xJf node-v22.13.1-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
14
  rm node-v22.13.1-linux-x64.tar.xz
15
 
16
- # 3. Install JupyterLab
17
- RUN pip install --no-cache-dir jupyterlab
18
 
19
- # 4. Setup User (HF ID 1000)
20
  RUN useradd -m -u 1000 user
21
  WORKDIR /home/user/app
22
  RUN mkdir -p /tmp/dns && chown -R user:user /tmp/dns /home/user/app
23
 
24
- # ---------------------------------------------------------
25
- # 5. GLOBAL HIJACK (Ini yang bikin DNS nancep ke semua shell)
26
- # ---------------------------------------------------------
27
- ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libnss_wrapper.so
28
- ENV NSS_WRAPPER_RESOLV_CONF=/tmp/dns/resolv.conf
29
- ENV NODE_OPTIONS='--experimental-require-module'
30
-
31
- # Buat perintah 'root' jadi binari asli, bukan alias biar gak 'not found' lagi
32
- RUN echo '#!/bin/bash\nproot -0 -b /tmp/dns/resolv.conf:/etc/resolv.conf "$@"' > /usr/local/bin/root && \
33
- chmod +x /usr/local/bin/root
34
-
35
  USER user
36
-
37
- # Pastikan file resolv.conf selalu ada setiap shell dibuka
38
- RUN echo "echo -e 'nameserver 8.8.8.8\nnameserver 1.1.1.1' > /tmp/dns/resolv.conf" >> ~/.bashrc
39
-
40
  EXPOSE 7860
41
 
42
- # 6. STARTUP JUPYTER
43
- CMD bash -c "echo -e 'nameserver 8.8.8.8\nnameserver 1.1.1.1' > /tmp/dns/resolv.conf; \
44
- jupyter lab --ip=0.0.0.0 --port=7860 --no-browser --allow-root --ServerApp.token='' --ServerApp.password='' --ServerApp.disable_check_xsrf=True --ServerApp.allow_origin='*'"
45
-
 
1
  FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV HOSTNAME=Nobita-Terminal
5
 
6
+ # 1. Install Tools, TTYD, & Proot
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ ca-certificates curl wget git sudo procps xz-utils python3-pip proot \
9
+ && curl -fsSL https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o /usr/local/bin/ttyd \
10
+ && chmod +x /usr/local/bin/ttyd \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # 2. Stealth Node.js v22 Installation (Manual Binary)
14
  RUN wget https://nodejs.org/dist/v22.13.1/node-v22.13.1-linux-x64.tar.xz && \
15
  tar -xJf node-v22.13.1-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
16
  rm node-v22.13.1-linux-x64.tar.xz
17
 
18
+ # 3. Install Gradio (Buat Penyamaran AI)
19
+ RUN pip install --no-cache-dir gradio
20
 
21
+ # 4. Setup User & Workspace
22
  RUN useradd -m -u 1000 user
23
  WORKDIR /home/user/app
24
  RUN mkdir -p /tmp/dns && chown -R user:user /tmp/dns /home/user/app
25
 
 
 
 
 
 
 
 
 
 
 
 
26
  USER user
 
 
 
 
27
  EXPOSE 7860
28
 
29
+ # 5. STARTUP: Jalankan Perisai (shield.py)
30
+ CMD ["python3", "shield.py"]