From 457287e3b8e483686056d9601b534d056c4ac804 Mon Sep 17 00:00:00 2001 From: c0mmando Date: Wed, 28 May 2025 19:44:37 +0000 Subject: [PATCH 1/4] update python requirements and Dockerfile --- Dockerfile | 5 ++++- requirements.txt | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 832982d..4d7bca1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,13 +44,16 @@ RUN apt-get update && \ socat \ git \ cron && \ - apt-get install -y python3-pandas python3-requests python3-socks && \ rm -rf /var/lib/apt/lists/* # Copy the Darknet Lantern source from the builder stage. RUN mkdir -p /srv/darknet-lantern COPY --from=builder /src/darknet-lantern/ /srv/darknet-lantern/ +# Install Requirements +RUN pip3 install --upgrade pip --break-system-packages && \ + pip3 install --no-cache-dir --break-system-packages -r /srv/darknet-lantern/requirements.txt + # Configure nginx. COPY ./lantern_nginx_conf/lantern.conf /etc/nginx/sites-available/lantern.conf RUN ln -sf /etc/nginx/sites-available/lantern.conf /etc/nginx/sites-enabled/ && \ diff --git a/requirements.txt b/requirements.txt index a887ce5..0cb5b48 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,15 +1,16 @@ beautifulsoup4==4.13.3 -certifi==2024.12.14 +certifi==2025.4.26 charset-normalizer==3.4.1 +dotnev==0.9.9 idna==3.10 -numpy==2.2.2 +numpy==2.2.6 pandas==2.2.3 python-dateutil==2.9.0.post0 +python-dotenv==1.1.0 python-socks==2.6.1 pytz==2024.2 requests==2.32.3 six==1.17.0 -tzdata==2025.1 -urllib3==2.3.0 -python-dotenv==1.0.1 -websockets==15.0.1 +tzdata==2025.2 +urllib3==2.4.0 +websockets==15.0.1 \ No newline at end of file From 5010c8f855fb496ef1999ed1bb36813c5b56f3f6 Mon Sep 17 00:00:00 2001 From: c0mmando Date: Wed, 28 May 2025 20:35:32 +0000 Subject: [PATCH 2/4] add pillow --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 0cb5b48..a064bd7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,7 @@ dotnev==0.9.9 idna==3.10 numpy==2.2.6 pandas==2.2.3 +pillow==11.2.1 python-dateutil==2.9.0.post0 python-dotenv==1.1.0 python-socks==2.6.1 From 9fac3010decc53e7d1a7b600807f45886a161675 Mon Sep 17 00:00:00 2001 From: c0mmando Date: Wed, 28 May 2025 20:36:57 +0000 Subject: [PATCH 3/4] add pillow and pysocks --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index a064bd7..da5df94 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,7 @@ idna==3.10 numpy==2.2.6 pandas==2.2.3 pillow==11.2.1 +PySocks==1.7.1 python-dateutil==2.9.0.post0 python-dotenv==1.1.0 python-socks==2.6.1 From e7ff645bff84941e2b91107fd9c3c678e489eb96 Mon Sep 17 00:00:00 2001 From: c0mmando Date: Wed, 28 May 2025 20:49:48 +0000 Subject: [PATCH 4/4] fix typo --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index da5df94..f3e6a0f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ beautifulsoup4==4.13.3 certifi==2025.4.26 charset-normalizer==3.4.1 -dotnev==0.9.9 +dotenv==0.9.9 idna==3.10 numpy==2.2.6 pandas==2.2.3