pyentrypoint does not support Python 3.11 yet

This commit is contained in:
wander 2026-02-06 20:23:20 -05:00
parent e77d847dcc
commit dd338125f0
2 changed files with 12 additions and 12 deletions

View file

@ -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