FROM ghcr.io/astral-sh/uv:0.11.16-python3.12-trixie-slim@sha256:438bad5bb636f6cc60765ed25f294c74dd896e6d14b2093c3467a37b5d03a78a
RUN apt-get update && apt-get install -y --no-install-recommends tor=0.4.9.11-0+deb13u1 libevent-2.1-7t64=2.1.12-stable-10+b1 ca-certificates=20250419 \
    && dpkg-query -W tor libevent-2.1-7t64 libssl3t64 > /opt/tor-build-packages.txt \
    && rm -rf /var/lib/apt/lists/*
COPY torrc service.py bridges.py /opt/pilot-tor/
USER 65534:65534
ENV PYTHONDONTWRITEBYTECODE=1
CMD ["uv", "run", "--no-project", "--no-config", "--no-cache", "--no-python-downloads", "python", "/opt/pilot-tor/service.py"]
