From 7c63396b68ba6f4002ff95952d18506d3f3ae590 Mon Sep 17 00:00:00 2001 From: wander Date: Fri, 6 Feb 2026 20:43:10 -0500 Subject: [PATCH] removal of dev packages (the fuck?) --- Dockerfile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7dfd48d..d020ce7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,25 @@ 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. +# 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 \ - grep \ - && mkdir -p /var/lib/tor/hidden_service/ \ - && chown -R tor:root /var/lib/tor + cargo \ + && pip install --no-cache-dir -r requirements.txt \ + && apk del .build-deps # Copy our Magic Script COPY assets/entrypoint.sh /entrypoint.sh