Download Dockerfile from TwanAPI/shsh: direct link, hf CLI and curl.
- Browser
- Download file 1.93 kB
-
https://huggingface.co/spaces/TwanAPI/shsh/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TwanAPI/shsh/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TwanAPI/shsh/resolve/main/Dockerfile
1.93 kB
| FROM buildpack-deps:22.04-curl | |
| RUN useradd -m -u 1000 koga | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| TZ=Asia/Ho_Chi_Minh \ | |
| PORT=7860 | |
| # Cài gói hệ thống và proxychains-ng | |
| RUN rm -f /etc/apt/sources.list.d/*.list && \ | |
| apt-get update && apt-get install -y --no-install-recommends \ | |
| ansible \ | |
| bash \ | |
| procps \ | |
| git \ | |
| git-lfs \ | |
| unzip \ | |
| xz-utils \ | |
| openssh-client \ | |
| openssl \ | |
| dnsutils \ | |
| curl \ | |
| sudo \ | |
| screen \ | |
| smbclient \ | |
| wget \ | |
| rsync \ | |
| whois \ | |
| netcat \ | |
| nmap \ | |
| terminator \ | |
| tmux \ | |
| ffmpeg \ | |
| htop \ | |
| vim \ | |
| nano \ | |
| neofetch \ | |
| net-tools \ | |
| libxi6 \ | |
| libgconf-2-4 \ | |
| locales \ | |
| bzip2 \ | |
| python3-numpy \ | |
| libsodium-dev \ | |
| libsodium23 \ | |
| supervisor \ | |
| xdotool \ | |
| zsh \ | |
| fontconfig \ | |
| build-essential \ | |
| proxychains4 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Thiết lập proxychains cấu hình SOCKS5 proxy | |
| RUN echo 'strict_chain\n\ | |
| proxy_dns\n\ | |
| tcp_read_time_out 15000\n\ | |
| tcp_connect_time_out 8000\n\ | |
| [ProxyList]\n\ | |
| socks5 74.81.54.129 80 admin1 thanhtai123' > /etc/proxychains.conf | |
| # Cài Node.js và configurable-http-proxy | |
| RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt install -y nodejs && \ | |
| npm install -g configurable-http-proxy | |
| RUN apt install -y \ | |
| libnss3-dev \ | |
| libgdk-pixbuf2.0-dev \ | |
| libgtk-3-dev \ | |
| libxss-dev \ | |
| libssl-dev \ | |
| libncurses5-dev \ | |
| libsqlite3-dev \ | |
| libreadline-dev \ | |
| libtk8.6 \ | |
| libgdm-dev \ | |
| libdb4o-cil-dev \ | |
| libpcap-dev \ | |
| libasound2 \ | |
| make \ | |
| libnss3 | |
| # Clone source code | |
| WORKDIR /home | |
| RUN git clone https://github.com/Twan07/dis.git | |
| RUN chown -R koga: /home/dis && chmod 777 /home/dis | |
| WORKDIR /home/dis | |
| RUN npm install | |
| USER koga | |
| EXPOSE $PORT | |
| # ✅ Chạy app qua proxychains (tự động ép mọi kết nối qua SOCKS5) | |
| CMD ["proxychains4", "npm", "run", "start"] |