diff --git a/build_modules.sh b/build_modules.sh index 87c79306..d6453a4d 100755 --- a/build_modules.sh +++ b/build_modules.sh @@ -17,7 +17,7 @@ build_module() { echo "🔨 Construction de $module..." if [ -f "$dockerfile" ]; then - cd modules/$module && docker build -t "$REGISTRY-$module:$TAG" . && cd ../../ + docker build -t "$REGISTRY-$module:$TAG" -f "$dockerfile" . echo "✅ $module construit avec succès" else echo "❌ Dockerfile non trouvé pour $module: $dockerfile" diff --git a/conf/tor.conf b/conf/tor.conf new file mode 100644 index 00000000..f782e46c --- /dev/null +++ b/conf/tor.conf @@ -0,0 +1,3 @@ +DataDirectory /var/lib/tor +SocksPort 9050 +ControlPort 9051 diff --git a/modules/tor/Dockerfile b/modules/tor/Dockerfile index 8536ed26..76d19dec 100644 --- a/modules/tor/Dockerfile +++ b/modules/tor/Dockerfile @@ -1 +1,5 @@ -FROM dperson/tor:latest +FROM alpine:latest +RUN apk add --no-cache tor curl +COPY conf/tor.conf /etc/tor/torrc +EXPOSE 9050 9051 +CMD ["tor"]