FROM python:3.13-slim RUN apt-get update && apt-get install -y tor curl gcc g++ make && rm -rf /var/lib/apt/lists/* WORKDIR /app ENV PYTHONUNBUFFERED=1 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 7860 CMD sh -c "tor & sleep 8 && python visorconf.py"