From dd338125f090f4789594b041950b4a6980462bfc Mon Sep 17 00:00:00 2001 From: wander Date: Fri, 6 Feb 2026 20:23:20 -0500 Subject: [PATCH] pyentrypoint does not support Python 3.11 yet --- Dockerfile | 22 +++++++++++----------- pyproject.toml | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 22ea00d..4a255e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-alpine +FROM python:3.10-alpine ENV HOME=/var/lib/tor ENV VANGUARDS_CONFIG=/etc/tor/vanguards.conf @@ -6,12 +6,12 @@ ENV VANGUARDS_CONFIG=/etc/tor/vanguards.conf # Install runtime dependencies # tor and torsocks are available in Alpine edge/community repos RUN apk add --no-cache \ - tor \ - torsocks \ - libevent \ - openssl \ - ca-certificates \ - libffi \ + tor \ + torsocks \ + libevent \ + openssl \ + ca-certificates \ + libffi \ && mkdir -p /var/lib/tor/hidden_service/ \ && chown -R tor:root /var/lib/tor @@ -20,10 +20,10 @@ WORKDIR /usr/local/src/onions # Install Python dependencies COPY requirements.txt . RUN apk add --no-cache --virtual .build-deps \ - build-base \ - openssl-dev \ - libffi-dev \ - cargo \ + build-base \ + openssl-dev \ + libffi-dev \ + cargo \ && pip install --no-cache-dir -r requirements.txt \ && apk del .build-deps diff --git a/pyproject.toml b/pyproject.toml index 9fb52ff..e8b1396 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ packages = [ onions = "onions:main" [tool.poetry.dependencies] -python = ">=3.10,<3.12" +python = ">=3.10,<3.11" Jinja2 = ">=2.10" importlib_metadata = ">=1.6.0" vanguards = "^0.3.1"