FROM python:3.11-alpine # Install runtime dependencies RUN apk add --no-cache \ tor \ curl \ openssl \ ca-certificates \ grep \ libffi \ && mkdir -p /var/lib/tor/hidden_service/ \ && chown -R tor:root /var/lib/tor # Install Build Dependencies and Vanguards COPY requirements.txt . RUN apk add --no-cache --virtual .build-deps \ build-base \ libffi-dev \ openssl-dev \ cargo \ && pip install --no-cache-dir -r requirements.txt \ && apk del .build-deps # 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"]