Aqso commited on
Commit
45f9b5e
·
verified ·
1 Parent(s): eee2989

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -3,28 +3,32 @@ FROM ubuntu:22.04
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"]
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV HOSTNAME=Nobita-Terminal
5
 
6
+ # 1. Install Tools Dasar, 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 (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 Perisai AI)
19
  RUN pip install --no-cache-dir gradio
20
 
21
+ # 4. Setup User & Copy Files
22
  RUN useradd -m -u 1000 user
23
  WORKDIR /home/user/app
24
+
25
+ # COPY SEMUA FILE (Termasuk shield.py) KE DALEM APP
26
+ COPY --chown=user . .
27
+
28
  RUN mkdir -p /tmp/dns && chown -R user:user /tmp/dns /home/user/app
29
 
30
  USER user
31
  EXPOSE 7860
32
 
33
+ # 5. JALANKAN PERISAI
34
  CMD ["python3", "shield.py"]