Aqso commited on
Commit
d7da99f
·
verified ·
1 Parent(s): d430139

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"]