# 🐍 Proxy Miner — fully self-contained Docker image for HF Spaces. # This image CLONES your repo at build time, so it needs no local # build context: it "imports everything" by itself. FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 \ HOST=0.0.0.0 # git is only needed to clone at build time RUN apt-get update \ && apt-get install -y --no-install-recommends git \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # ---- clone YOUR repo and take the proxy-miner folder ---- ARG REPO_URL=https://github.com/Adarshukumar/RepopoxRev.git ARG BRANCH=main ARG SUBDIR=proxy-miner RUN git clone --depth 1 --branch "${BRANCH}" "${REPO_URL}" /tmp/repo \ && cp -r "/tmp/repo/${SUBDIR}/." /app/ \ && rm -rf /tmp/repo /app/.git # ---- install deps ---- RUN pip install --no-cache-dir -r requirements.txt # HF Spaces injects $PORT; app.py reads it automatically. EXPOSE 7860 CMD ["python3", "app.py"]