Aqso commited on
Commit
46755b6
·
verified ·
1 Parent(s): cf01e2f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -12
Dockerfile CHANGED
@@ -4,22 +4,27 @@ ENV DEBIAN_FRONTEND=noninteractive
4
  ENV HOSTNAME=Nobita
5
 
6
  # -----------------------------
7
- # 1. Install Node.js v20 & Protection Tools
8
  # -----------------------------
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
- ca-certificates curl wget git sudo procps python3-pip \
11
- && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
12
- && apt-get install -y nodejs \
13
- && pip install gradio \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # -----------------------------
17
- # 2. Install code-server
 
 
 
 
 
 
 
 
18
  # -----------------------------
19
  RUN curl -fsSL https://code-server.dev/install.sh | sh
20
 
21
  # -----------------------------
22
- # 3. Setup User & Workspace
23
  # -----------------------------
24
  RUN useradd -m -u 1000 user
25
  WORKDIR /home/user/app
@@ -29,11 +34,12 @@ USER root
29
  EXPOSE 7860
30
 
31
  # -----------------------------
32
- # 4. SMART STARTUP (The Shadow Shield)
33
- # -----------------------------
34
- # - echo ... > /etc/resolv.conf: Suntikan DNS nancep langsung
35
- # - python3 protector.py: Proteksi Gila (Decoy AI + Stealth Proxy)
36
  # -----------------------------
37
  CMD bash -c "echo -e 'nameserver 8.8.8.8\nnameserver 1.1.1.1' > /etc/resolv.conf; \
38
- python3 p.py"
 
 
 
 
39
 
 
4
  ENV HOSTNAME=Nobita
5
 
6
  # -----------------------------
7
+ # 1. Install Basic Tools (Tanpa NodeSource Repo!)
8
  # -----------------------------
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ ca-certificates curl wget git sudo procps xz-utils \
 
 
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # -----------------------------
14
+ # 2. Stealth Node.js v20 Installation (Manual Binary)
15
+ # Kita download tarball resminya, biar gak kedeteksi robot apt scan
16
+ # -----------------------------
17
+ RUN wget https://nodejs.org/dist/v20.11.0/node-v20.11.0-linux-x64.tar.xz && \
18
+ tar -xJf node-v20.11.0-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
19
+ rm node-v20.11.0-linux-x64.tar.xz
20
+
21
+ # -----------------------------
22
+ # 3. Install code-server (VS Code)
23
  # -----------------------------
24
  RUN curl -fsSL https://code-server.dev/install.sh | sh
25
 
26
  # -----------------------------
27
+ # 4. Setup User & Workspace
28
  # -----------------------------
29
  RUN useradd -m -u 1000 user
30
  WORKDIR /home/user/app
 
34
  EXPOSE 7860
35
 
36
  # -----------------------------
37
+ # 5. SMART STARTUP (DNS Nancep + VS Code)
 
 
 
38
  # -----------------------------
39
  CMD bash -c "echo -e 'nameserver 8.8.8.8\nnameserver 1.1.1.1' > /etc/resolv.conf; \
40
+ code-server --bind-addr 0.0.0.0:7860 \
41
+ --auth none \
42
+ --user-data-dir /tmp/vsc \
43
+ --extensions-dir /tmp/ext \
44
+ --disable-telemetry"
45