FROM python:3.11-alpine # Install Tor and build dependencies # We keep python base image for potential Vanguards support later (which is python based), # but for now we are simplifying the build. RUN apk add --no-cache \ tor \ curl \ build-base \ libffi-dev \ openssl-dev \ grep \ && mkdir -p /var/lib/tor/hidden_service/ \ && chown -R tor:root /var/lib/tor # Copy our Magic Script COPY assets/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh # Set the Magic Script as the entrypoint ENTRYPOINT ["/entrypoint.sh"]